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