Package net.minecraft.particle
Record Class TrailParticleEffect
java.lang.Object
java.lang.Record
net.minecraft.particle.TrailParticleEffect
- Record Components:
target
-color
-
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TrailParticleEffect> private final int
The field for thecolor
record component.static final PacketCodec
<RegistryByteBuf, TrailParticleEffect> private final Vec3d
The field for thetarget
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
color()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
target
The field for thetarget
record component. -
color
private final int colorThe field for thecolor
record component. -
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
- 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
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceParticleEffect
- 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
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 '=='. -
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
color
public int color()Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-