Record Class GuideBookItemModel.Unbaked
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.GuideBookItemModel.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel.Unbaked, net.minecraft.client.resources.model.ResolvableModel
- Enclosing class:
GuideBookItemModel
public static record GuideBookItemModel.Unbaked(net.minecraft.client.renderer.item.ItemModel.Unbaked fallback, Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> flat, Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> gui)
extends Record
implements net.minecraft.client.renderer.item.ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
net.minecraft.client.resources.model.ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<GuideBookItemModel.Unbaked> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.item.ItemModelbake(net.minecraft.client.renderer.item.ItemModel.BakingContext context, org.joml.Matrix4fc transformation) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.item.ItemModel.Unbakedfallback()Returns the value of thefallbackrecord component.Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> flat()Returns the value of theflatrecord component.Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> gui()Returns the value of theguirecord component.final inthashCode()Returns a hash code value for this object.voidresolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<GuideBookItemModel.Unbaked> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(net.minecraft.client.renderer.item.ItemModel.Unbaked fallback, Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> flat, Optional<net.minecraft.client.renderer.item.ItemModel.Unbaked> gui) Creates an instance of aUnbakedrecord class.- Parameters:
fallback- the value for thefallbackrecord componentflat- the value for theflatrecord componentgui- the value for theguirecord component
-
-
Method Details
-
type
- Specified by:
typein interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
bake
public net.minecraft.client.renderer.item.ItemModel bake(net.minecraft.client.renderer.item.ItemModel.BakingContext context, org.joml.Matrix4fc transformation) - Specified by:
bakein interfacenet.minecraft.client.renderer.item.ItemModel.Unbaked
-
resolveDependencies
public void resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) - Specified by:
resolveDependenciesin interfacenet.minecraft.client.resources.model.ResolvableModel
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fallback
public net.minecraft.client.renderer.item.ItemModel.Unbaked fallback()Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-
flat
Returns the value of theflatrecord component.- Returns:
- the value of the
flatrecord component
-
gui
Returns the value of theguirecord component.- Returns:
- the value of the
guirecord component
-