Record Class BlockParticleEffect

java.lang.Object
java.lang.Record
net.minecraft.particle.BlockParticleEffect
Record Components:
particle -
scaling -
speed -

public record BlockParticleEffect(ParticleEffect particle, float scaling, float speed) extends Record
Mappings:
Namespace Name
named net/minecraft/particle/BlockParticleEffect
intermediary net/minecraft/class_11749
official lz
named particle
intermediary comp_4620
official c
named scaling
intermediary comp_4621
official d
named speed
intermediary comp_4622
official e
  • Field Details

    • particle

      private final ParticleEffect particle
      The field for the particle record component.
    • scaling

      private final float scaling
      The field for the scaling record component.
    • speed

      private final float speed
      The field for the speed record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<BlockParticleEffect> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/particle/BlockParticleEffect;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62054 Lnet/minecraft/class_11749;field_62054:Lcom/mojang/serialization/MapCodec;
      official a Llz;a:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,BlockParticleEffect> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/particle/BlockParticleEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62055 Lnet/minecraft/class_11749;field_62055:Lnet/minecraft/class_9139;
      official b Llz;b:Laae;
  • Constructor Details

    • BlockParticleEffect

      public BlockParticleEffect(ParticleEffect particleEffect, float float2, float float3)
  • Method Details

    • 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.
    • particle

      public ParticleEffect particle()
      Returns the value of the particle record component.
      Returns:
      the value of the particle record component
    • scaling

      public float scaling()
      Returns the value of the scaling record component.
      Returns:
      the value of the scaling record component
    • speed

      public float speed()
      Returns the value of the speed record component.
      Returns:
      the value of the speed record component