Record Class TrailParticleEffect

java.lang.Object
java.lang.Record
net.minecraft.particle.TrailParticleEffect
Record Components:
target -
color -
All Implemented Interfaces:
ParticleEffect

public record TrailParticleEffect(Vec3d target, int color) extends Record implements ParticleEffect
Mappings:
Namespace Name
named net/minecraft/particle/TrailParticleEffect
intermediary net/minecraft/class_10339
official lx
named target
intermediary comp_3292
official c
named color
intermediary comp_3293
official d
  • Field Details

    • target

      private final Vec3d target
      The field for the target record component.
    • color

      private final int color
      The field for the color record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<TrailParticleEffect> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/particle/TrailParticleEffect;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_54871 Lnet/minecraft/class_10339;field_54871:Lcom/mojang/serialization/MapCodec;
      official a Llx;a:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,TrailParticleEffect> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/particle/TrailParticleEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54872 Lnet/minecraft/class_10339;field_54872:Lnet/minecraft/class_9139;
      official b Llx;b:Lzt;
  • Constructor Details

    • TrailParticleEffect

      public TrailParticleEffect(Vec3d vec3d, int int2)
  • Method Details

    • getType

      public ParticleType<TrailParticleEffect> getType()
      Specified by:
      getType in interface ParticleEffect
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/particle/ParticleEffect;getType()Lnet/minecraft/particle/ParticleType;
      intermediary method_10295 Lnet/minecraft/class_2394;method_10295()Lnet/minecraft/class_2396;
      official a Llq;a()Llr;
    • 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.
    • target

      public Vec3d target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component