Record Class GeyserBaseParticleOptions
java.lang.Object
java.lang.Record
net.minecraft.core.particles.GeyserBaseParticleOptions
- All Implemented Interfaces:
ParticleOptions
public record GeyserBaseParticleOptions(ParticleType<GeyserBaseParticleOptions> type, int waterBlocks, float burstImpulseBase)
extends Record
implements ParticleOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theburstImpulseBaserecord component.private final ParticleType<GeyserBaseParticleOptions> The field for thetyperecord component.private final intThe field for thewaterBlocksrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGeyserBaseParticleOptions(ParticleType<GeyserBaseParticleOptions> type, int waterBlocks, float burstImpulseBase) Creates an instance of aGeyserBaseParticleOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theburstImpulseBaserecord component.static com.mojang.serialization.MapCodec<GeyserBaseParticleOptions> final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.static StreamCodec<? super io.netty.buffer.ByteBuf, GeyserBaseParticleOptions> final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intReturns the value of thewaterBlocksrecord component.
-
Field Details
-
type
The field for thetyperecord component. -
waterBlocks
private final int waterBlocksThe field for thewaterBlocksrecord component. -
burstImpulseBase
private final float burstImpulseBaseThe field for theburstImpulseBaserecord component.
-
-
Constructor Details
-
GeyserBaseParticleOptions
public GeyserBaseParticleOptions(ParticleType<GeyserBaseParticleOptions> type, int waterBlocks, float burstImpulseBase) Creates an instance of aGeyserBaseParticleOptionsrecord class.- Parameters:
type- the value for thetyperecord componentwaterBlocks- the value for thewaterBlocksrecord componentburstImpulseBase- the value for theburstImpulseBaserecord component
-
-
Method Details
-
codec
public static com.mojang.serialization.MapCodec<GeyserBaseParticleOptions> codec(ParticleType<GeyserBaseParticleOptions> type) -
streamCodec
public static StreamCodec<? super io.netty.buffer.ByteBuf, GeyserBaseParticleOptions> streamCodec(ParticleType<GeyserBaseParticleOptions> type) -
getType
- Specified by:
getTypein interfaceParticleOptions
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
waterBlocks
public int waterBlocks()Returns the value of thewaterBlocksrecord component.- Returns:
- the value of the
waterBlocksrecord component
-
burstImpulseBase
public float burstImpulseBase()Returns the value of theburstImpulseBaserecord component.- Returns:
- the value of the
burstImpulseBaserecord component
-