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(BakedModelVariableOverlays variableModelBaked, net.minecraft.client.renderer.block.model.ItemTransforms itemTransforms)
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
(BakedModelVariableOverlays variableModelBaked, net.minecraft.client.renderer.block.model.ItemTransforms itemTransforms) Creates an instance of aItemModelVariableOverlay
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.minecraft.client.renderer.block.model.ItemTransforms
Returns the value of theitemTransforms
record component.final String
toString()
Returns a string representation of this record class.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 net.minecraft.client.multiplayer.ClientLevel level, @Nullable net.minecraft.world.entity.LivingEntity entity, int seed) Returns the value of thevariableModelBaked
record component.
-
Constructor Details
-
ItemModelVariableOverlay
public ItemModelVariableOverlay(BakedModelVariableOverlays variableModelBaked, net.minecraft.client.renderer.block.model.ItemTransforms itemTransforms) Creates an instance of aItemModelVariableOverlay
record class.- Parameters:
variableModelBaked
- the value for thevariableModelBaked
record componentitemTransforms
- the value for theitemTransforms
record 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:
update
in 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 thevariableModelBaked
record component.- Returns:
- the value of the
variableModelBaked
record component
-
itemTransforms
public net.minecraft.client.renderer.block.model.ItemTransforms itemTransforms()Returns the value of theitemTransforms
record component.- Returns:
- the value of the
itemTransforms
record component
-