Package net.minecraft.particle
Class DustParticleEffect
java.lang.Object
net.minecraft.particle.DustParticleEffect
- All Implemented Interfaces:
ParticleEffect
public class DustParticleEffect extends Object implements ParticleEffect
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.particle.ParticleEffect
ParticleEffect.Factory<T extends ParticleEffect>
-
Field Summary
Fields Modifier and Type Field Description private float
blue
static com.mojang.serialization.Codec<DustParticleEffect>
CODEC
private float
green
static ParticleEffect.Factory<DustParticleEffect>
PARAMETERS_FACTORY
private float
red
static DustParticleEffect
RED
private float
scale
-
Constructor Summary
Constructors Constructor Description DustParticleEffect(float red, float green, float blue, float scale)
-
Method Summary
Modifier and Type Method Description String
asString()
float
getBlue()
float
getGreen()
float
getRed()
float
getScale()
ParticleType<DustParticleEffect>
getType()
void
write(PacketByteBuf buf)
-
Field Details
-
RED
-
CODEC
-
PARAMETERS_FACTORY
-
red
private final float red -
green
private final float green -
blue
private final float blue -
scale
private final float scale
-
-
Constructor Details
-
DustParticleEffect
public DustParticleEffect(float red, float green, float blue, float scale)
-
-
Method Details
-
write
- Specified by:
write
in interfaceParticleEffect
-
asString
- Specified by:
asString
in interfaceParticleEffect
-
getType
- Specified by:
getType
in interfaceParticleEffect
-
getRed
@Environment(CLIENT) public float getRed() -
getGreen
@Environment(CLIENT) public float getGreen() -
getBlue
@Environment(CLIENT) public float getBlue() -
getScale
@Environment(CLIENT) public float getScale()
-