Record Class ItemModelVariableOverlay
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.client.model.ItemModelVariableOverlay
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel
public record ItemModelVariableOverlay(ItemModelVariableOverlays variableModelBaked)
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
ConstructorsConstructorDescriptionItemModelVariableOverlay(ItemModelVariableOverlays variableModelBaked) Creates an instance of aItemModelVariableOverlayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.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 renderState, net.minecraft.world.item.ItemStack stack, net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver, net.minecraft.world.item.ItemDisplayContext displayContext, @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity entity, int seed) Returns the value of thevariableModelBakedrecord component.
-
Constructor Details
-
ItemModelVariableOverlay
Creates an instance of aItemModelVariableOverlayrecord class.- Parameters:
variableModelBaked- the value for thevariableModelBakedrecord component
-
-
Method Details
-
update
public void update(net.minecraft.client.renderer.item.ItemStackRenderState renderState, net.minecraft.world.item.ItemStack stack, net.minecraft.client.renderer.item.ItemModelResolver itemModelResolver, net.minecraft.world.item.ItemDisplayContext displayContext, @Nullable @Nullable net.minecraft.client.multiplayer.ClientLevel level, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity, 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). -
variableModelBaked
Returns the value of thevariableModelBakedrecord component.- Returns:
- the value of the
variableModelBakedrecord component
-