Package net.minecraft.particles
Class ItemParticleData
- java.lang.Object
-
- net.minecraft.particles.ItemParticleData
-
- All Implemented Interfaces:
IParticleData
public class ItemParticleData 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<ItemParticleData>
DESERIALIZER
private ItemStack
itemStack
private ParticleType<ItemParticleData>
type
-
Constructor Summary
Constructors Constructor Description ItemParticleData(ParticleType<ItemParticleData> p_i47952_1_, ItemStack p_i47952_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.mojang.serialization.Codec<ItemParticleData>
codec(ParticleType<ItemParticleData> p_239809_0_)
ItemStack
getItem()
ParticleType<ItemParticleData>
getType()
void
writeToNetwork(PacketBuffer p_197553_1_)
java.lang.String
writeToString()
-
-
-
Field Detail
-
DESERIALIZER
public static final IParticleData.IDeserializer<ItemParticleData> DESERIALIZER
-
type
private final ParticleType<ItemParticleData> type
-
itemStack
private final ItemStack itemStack
-
-
Constructor Detail
-
ItemParticleData
public ItemParticleData(ParticleType<ItemParticleData> p_i47952_1_, ItemStack p_i47952_2_)
-
-
Method Detail
-
codec
public static com.mojang.serialization.Codec<ItemParticleData> codec(ParticleType<ItemParticleData> p_239809_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<ItemParticleData> getType()
- Specified by:
getType
in interfaceIParticleData
-
getItem
public ItemStack getItem()
-
-