Package net.minecraft.particle
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/BlockParticleEffectintermediary net/minecraft/class_11749official lznamed particleintermediary comp_4620official cnamed scalingintermediary comp_4621official dnamed speedintermediary comp_4622official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BlockParticleEffect> static final PacketCodec<RegistryByteBuf, BlockParticleEffect> private final ParticleEffectThe field for theparticlerecord component.private final floatThe field for thescalingrecord component.private final floatThe field for thespeedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockParticleEffect(ParticleEffect particleEffect, float float2, float float3) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.particle()Returns the value of theparticlerecord component.floatscaling()Returns the value of thescalingrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
particle
The field for theparticlerecord component. -
scaling
private final float scalingThe field for thescalingrecord component. -
speed
private final float speedThe field for thespeedrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/particle/BlockParticleEffect;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62054Lnet/minecraft/class_11749;field_62054:Lcom/mojang/serialization/MapCodec;official aLlz;a:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/particle/BlockParticleEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62055Lnet/minecraft/class_11749;field_62055:Lnet/minecraft/class_9139;official bLlz;b:Laae;
-
-
Constructor Details
-
BlockParticleEffect
-
-
Method Details
-
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 '=='. -
particle
Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
scaling
public float scaling()Returns the value of thescalingrecord component.- Returns:
- the value of the
scalingrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-