Record Class AllPotatoProjectileRenderModes.StuckToEntity
java.lang.Object
java.lang.Record
com.simibubi.create.content.equipment.potatoCannon.AllPotatoProjectileRenderModes.StuckToEntity
- All Implemented Interfaces:
PotatoProjectileRenderMode
- Enclosing class:
AllPotatoProjectileRenderModes
public static record AllPotatoProjectileRenderModes.StuckToEntity(net.minecraft.world.phys.Vec3 offset)
extends Record
implements PotatoProjectileRenderMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<AllPotatoProjectileRenderModes.StuckToEntity> -
Constructor Summary
ConstructorsConstructorDescriptionStuckToEntity(net.minecraft.world.phys.Vec3 offset) Creates an instance of aStuckToEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends PotatoProjectileRenderMode> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3offset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.voidtransform(com.mojang.blaze3d.vertex.PoseStack ms, PotatoProjectileEntity entity, float pt)
-
Field Details
-
CODEC
public static final com.mojang.serialization.MapCodec<AllPotatoProjectileRenderModes.StuckToEntity> CODEC
-
-
Constructor Details
-
StuckToEntity
public StuckToEntity(net.minecraft.world.phys.Vec3 offset) Creates an instance of aStuckToEntityrecord class.- Parameters:
offset- the value for theoffsetrecord component
-
-
Method Details
-
transform
public void transform(com.mojang.blaze3d.vertex.PoseStack ms, PotatoProjectileEntity entity, float pt) - Specified by:
transformin interfacePotatoProjectileRenderMode
-
codec
- Specified by:
codecin interfacePotatoProjectileRenderMode
-
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). -
offset
public net.minecraft.world.phys.Vec3 offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-