Record Class ItemModelCable
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.client.model.ItemModelCable
- All Implemented Interfaces:
net.minecraft.client.renderer.item.ItemModel
public record ItemModelCable(org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel model)
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
ConstructorsConstructorDescriptionItemModelCable(org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel model) Creates an instance of aItemModelCablerecord 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.org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModelmodel()Returns the value of themodelrecord component.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)
-
Constructor Details
-
ItemModelCable
public ItemModelCable(org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel model) Creates an instance of aItemModelCablerecord class.- Parameters:
model- the value for themodelrecord 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). -
model
public org.cyclops.cyclopscore.client.model.DynamicItemAndBlockModel model()Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-