Record Class ItemModelFacade
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.client.model.ItemModelFacade
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel
public record ItemModelFacade(FacadeModel facadeModel)
extends Record
implements net.minecraft.client.renderer.item.ItemModel
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.renderer.item.ItemModel
net.minecraft.client.renderer.item.ItemModel.BakingContext -
Constructor Summary
ConstructorsConstructorDescriptionItemModelFacade(FacadeModel facadeModel) Creates an instance of aItemModelFacaderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefacadeModelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidupdate(net.minecraft.client.renderer.item.ItemStackRenderState itemStackRenderState, net.minecraft.world.item.ItemStack itemStack, net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver, net.minecraft.world.item.ItemDisplayContext itemDisplayContext, @Nullable net.minecraft.client.multiplayer.ClientLevel clientLevel, @Nullable net.minecraft.world.entity.ItemOwner itemOwner, int seed)
-
Constructor Details
-
ItemModelFacade
Creates an instance of aItemModelFacaderecord class.- Parameters:
facadeModel- the value for thefacadeModelrecord component
-
-
Method Details
-
update
public void update(net.minecraft.client.renderer.item.ItemStackRenderState itemStackRenderState, net.minecraft.world.item.ItemStack itemStack, net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver, net.minecraft.world.item.ItemDisplayContext itemDisplayContext, @Nullable @Nullable net.minecraft.client.multiplayer.ClientLevel clientLevel, @Nullable @Nullable net.minecraft.world.entity.ItemOwner itemOwner, int seed) - Specified by:
updatein interfacenet.minecraft.client.renderer.item.ItemModel
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
facadeModel
Returns the value of thefacadeModelrecord component.- Returns:
- the value of the
facadeModelrecord component
-