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$Instance
intermediary net/minecraft/class_11934$class_11935
official hcs$a
named itemRenderState
intermediary comp_4812
official a
named xOffset
intermediary comp_4813
official b
named yOffset
intermediary comp_4814
official c
named zOffset
intermediary comp_4815
official d
  • Field Details

    • itemRenderState

      private final EntityRenderState itemRenderState
      The field for the itemRenderState record component.
    • xOffset

      private final double xOffset
      The field for the xOffset record component.
    • yOffset

      private final double yOffset
      The field for the yOffset record component.
    • zOffset

      private final double zOffset
      The field for the zOffset record 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 create Lnet/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_74279 Lnet/minecraft/class_11934$class_11935;method_74279(Lnet/minecraft/class_693;Lnet/minecraft/class_4184;F)Lnet/minecraft/class_11934$class_11935;
      official a Lhcs$a;a(Lhcr;Lfzh;F)Lhcs$a;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • itemRenderState

      public EntityRenderState itemRenderState()
      Returns the value of the itemRenderState record component.
      Returns:
      the value of the itemRenderState record component
    • xOffset

      public double xOffset()
      Returns the value of the xOffset record component.
      Returns:
      the value of the xOffset record component
    • yOffset

      public double yOffset()
      Returns the value of the yOffset record component.
      Returns:
      the value of the yOffset record component
    • zOffset

      public double zOffset()
      Returns the value of the zOffset record component.
      Returns:
      the value of the zOffset record component