Package net.minecraft.particles
Class BlockParticleData
- java.lang.Object
-
- net.minecraft.particles.BlockParticleData
-
- All Implemented Interfaces:
IParticleData
public class BlockParticleData extends java.lang.Object implements IParticleData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.particles.IParticleData
IParticleData.IDeserializer<T extends IParticleData>
-
-
Field Summary
Fields Modifier and Type Field Description static IParticleData.IDeserializer<BlockParticleData>
DESERIALIZER
private BlockPos
pos
private BlockState
state
private ParticleType<BlockParticleData>
type
-
Constructor Summary
Constructors Constructor Description BlockParticleData(ParticleType<BlockParticleData> p_i47953_1_, BlockState p_i47953_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.mojang.serialization.Codec<BlockParticleData>
codec(ParticleType<BlockParticleData> p_239800_0_)
BlockPos
getPos()
BlockState
getState()
ParticleType<BlockParticleData>
getType()
BlockParticleData
setPos(BlockPos pos)
void
writeToNetwork(PacketBuffer p_197553_1_)
java.lang.String
writeToString()
-
-
-
Field Detail
-
DESERIALIZER
public static final IParticleData.IDeserializer<BlockParticleData> DESERIALIZER
-
type
private final ParticleType<BlockParticleData> type
-
state
private final BlockState state
-
pos
private BlockPos pos
-
-
Constructor Detail
-
BlockParticleData
public BlockParticleData(ParticleType<BlockParticleData> p_i47953_1_, BlockState p_i47953_2_)
-
-
Method Detail
-
codec
public static com.mojang.serialization.Codec<BlockParticleData> codec(ParticleType<BlockParticleData> p_239800_0_)
-
writeToNetwork
public void writeToNetwork(PacketBuffer p_197553_1_)
- Specified by:
writeToNetwork
in interfaceIParticleData
-
writeToString
public java.lang.String writeToString()
- Specified by:
writeToString
in interfaceIParticleData
-
getType
public ParticleType<BlockParticleData> getType()
- Specified by:
getType
in interfaceIParticleData
-
getState
public BlockState getState()
-
setPos
public BlockParticleData setPos(BlockPos pos)
-
getPos
public BlockPos getPos()
-
-