public class DustParticleEffect extends Object implements ParticleEffect
ParticleEffect.Factory<T extends ParticleEffect>
Modifier and Type | Field and 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 and Description |
---|
DustParticleEffect(float red,
float green,
float blue,
float scale) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
float |
getBlue() |
float |
getGreen() |
float |
getRed() |
float |
getScale() |
ParticleType<DustParticleEffect> |
getType() |
void |
write(PacketByteBuf buf) |
public static final DustParticleEffect RED
public static final com.mojang.serialization.Codec<DustParticleEffect> CODEC
public static final ParticleEffect.Factory<DustParticleEffect> PARAMETERS_FACTORY
private final float red
private final float green
private final float blue
private final float scale
public DustParticleEffect(float red, float green, float blue, float scale)
public void write(PacketByteBuf buf)
write
in interface ParticleEffect
public String asString()
asString
in interface ParticleEffect
public ParticleType<DustParticleEffect> getType()
getType
in interface ParticleEffect
@Environment(value=CLIENT) public float getRed()
@Environment(value=CLIENT) public float getGreen()
@Environment(value=CLIENT) public float getBlue()
@Environment(value=CLIENT) public float getScale()