public class BlockStateParticleEffect extends Object implements ParticleEffect
ParticleEffect.Factory<T extends ParticleEffect>
Modifier and Type | Field and Description |
---|---|
private BlockState |
blockState |
static ParticleEffect.Factory<BlockStateParticleEffect> |
PARAMETERS_FACTORY |
private ParticleType<BlockStateParticleEffect> |
type |
Constructor and Description |
---|
BlockStateParticleEffect(ParticleType<BlockStateParticleEffect> type,
BlockState blockState) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
BlockState |
getBlockState() |
ParticleType<BlockStateParticleEffect> |
getType() |
static com.mojang.serialization.Codec<BlockStateParticleEffect> |
method_29128(ParticleType<BlockStateParticleEffect> particleType) |
void |
write(PacketByteBuf buf) |
public static final ParticleEffect.Factory<BlockStateParticleEffect> PARAMETERS_FACTORY
private final ParticleType<BlockStateParticleEffect> type
private final BlockState blockState
public BlockStateParticleEffect(ParticleType<BlockStateParticleEffect> type, BlockState blockState)
public static com.mojang.serialization.Codec<BlockStateParticleEffect> method_29128(ParticleType<BlockStateParticleEffect> particleType)
public void write(PacketByteBuf buf)
write
in interface ParticleEffect
public String asString()
asString
in interface ParticleEffect
public ParticleType<BlockStateParticleEffect> getType()
getType
in interface ParticleEffect
@Environment(value=CLIENT) public BlockState getBlockState()