public class BlockParticleData extends java.lang.Object implements IParticleData
IParticleData.IDeserializer<T extends IParticleData>
Modifier and Type | Field and Description |
---|---|
private BlockState |
blockState |
static IParticleData.IDeserializer<BlockParticleData> |
DESERIALIZER |
private ParticleType<BlockParticleData> |
particleType |
private BlockPos |
pos |
Constructor and Description |
---|
BlockParticleData(ParticleType<BlockParticleData> particleTypeIn,
BlockState blockStateIn) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockState() |
java.lang.String |
getParameters() |
BlockPos |
getPos() |
ParticleType<BlockParticleData> |
getType() |
BlockParticleData |
setPos(BlockPos pos) |
void |
write(PacketBuffer buffer) |
public static final IParticleData.IDeserializer<BlockParticleData> DESERIALIZER
private final ParticleType<BlockParticleData> particleType
private final BlockState blockState
private BlockPos pos
public BlockParticleData(ParticleType<BlockParticleData> particleTypeIn, BlockState blockStateIn)
public void write(PacketBuffer buffer)
write
in interface IParticleData
public java.lang.String getParameters()
getParameters
in interface IParticleData
public ParticleType<BlockParticleData> getType()
getType
in interface IParticleData
public BlockState getBlockState()
public BlockParticleData setPos(BlockPos pos)
public BlockPos getPos()