Package net.minecraft.client.particle
Record Class ItemPickupParticleRenderer.Instance
java.lang.Object
java.lang.Record
net.minecraft.client.particle.ItemPickupParticleRenderer.Instance
- Record Components:
itemRenderState-xOffset-yOffset-zOffset-
- Enclosing class:
ItemPickupParticleRenderer
@Environment(CLIENT)
private static record ItemPickupParticleRenderer.Instance(EntityRenderState itemRenderState, double xOffset, double yOffset, double zOffset)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/particle/ItemPickupParticleRenderer$Instanceintermediary net/minecraft/class_11934$class_11935official hcs$anamed itemRenderStateintermediary comp_4812official anamed xOffsetintermediary comp_4813official bnamed yOffsetintermediary comp_4814official cnamed zOffsetintermediary comp_4815official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityRenderStateThe field for theitemRenderStaterecord component.private final doubleThe field for thexOffsetrecord component.private final doubleThe field for theyOffsetrecord component.private final doubleThe field for thezOffsetrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstance(EntityRenderState entityRenderState, double double2, double double3, double double4) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ItemPickupParticle particle, Camera camera, float tickProgress) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theitemRenderStaterecord component.final StringtoString()Returns a string representation of this record class.doublexOffset()Returns the value of thexOffsetrecord component.doubleyOffset()Returns the value of theyOffsetrecord component.doublezOffset()Returns the value of thezOffsetrecord component.
-
Field Details
-
itemRenderState
The field for theitemRenderStaterecord component. -
xOffset
private final double xOffsetThe field for thexOffsetrecord component. -
yOffset
private final double yOffsetThe field for theyOffsetrecord component. -
zOffset
private final double zOffsetThe field for thezOffsetrecord component.
-
-
Constructor Details
-
Instance
private Instance(EntityRenderState entityRenderState, double double2, double double3, double double4)
-
-
Method Details
-
create
public static ItemPickupParticleRenderer.Instance create(ItemPickupParticle particle, Camera camera, float tickProgress) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/particle/ItemPickupParticleRenderer$Instance;create(Lnet/minecraft/client/particle/ItemPickupParticle;Lnet/minecraft/client/render/Camera;F)Lnet/minecraft/client/particle/ItemPickupParticleRenderer$Instance;intermediary method_74279Lnet/minecraft/class_11934$class_11935;method_74279(Lnet/minecraft/class_693;Lnet/minecraft/class_4184;F)Lnet/minecraft/class_11934$class_11935;official aLhcs$a;a(Lhcr;Lfzh;F)Lhcs$a;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
itemRenderState
Returns the value of theitemRenderStaterecord component.- Returns:
- the value of the
itemRenderStaterecord component
-
xOffset
public double xOffset()Returns the value of thexOffsetrecord component.- Returns:
- the value of the
xOffsetrecord component
-
yOffset
public double yOffset()Returns the value of theyOffsetrecord component.- Returns:
- the value of the
yOffsetrecord component
-
zOffset
public double zOffset()Returns the value of thezOffsetrecord component.- Returns:
- the value of the
zOffsetrecord component
-