Record Class ItemDynamicItemAndBlockModel.Unbaked
java.lang.Object
java.lang.Record
org.cyclops.cyclopscore.client.render.model.ItemDynamicItemAndBlockModel.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel.Unbaked, net.minecraft.client.resources.model.ResolvableModel
- Enclosing class:
ItemDynamicItemAndBlockModel
public static record ItemDynamicItemAndBlockModel.Unbaked(net.minecraft.resources.Identifier model)
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<ItemDynamicItemAndBlockModel.Unbaked> -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(net.minecraft.resources.Identifier model) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.item.ItemModelbake(net.minecraft.client.renderer.item.ItemModel.BakingContext bakingContext, org.joml.Matrix4fc matrix4fc) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifiermodel()Returns the value of themodelrecord component.voidresolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<ItemDynamicItemAndBlockModel.Unbaked> type()
-
Field Details
-
MAP_CODEC
public static final com.mojang.serialization.MapCodec<ItemDynamicItemAndBlockModel.Unbaked> MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(net.minecraft.resources.Identifier model) Creates an instance of aUnbakedrecord class.- Parameters:
model- the value for themodelrecord 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 bakingContext, org.joml.Matrix4fc matrix4fc) - 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). -
model
public net.minecraft.resources.Identifier model()Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-