Package net.minecraft.core.particles
Class ItemParticleOption
java.lang.Object
net.minecraft.core.particles.ItemParticleOption
- All Implemented Interfaces:
ParticleOptions
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<ItemStack> private final ItemStack
private final ParticleType
<ItemParticleOption> -
Constructor Summary
ConstructorDescriptionItemParticleOption
(ParticleType<ItemParticleOption> p_123705_, ItemStack p_123706_) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<ItemParticleOption> codec
(ParticleType<ItemParticleOption> p_123711_) getItem()
getType()
static StreamCodec
<? super RegistryFriendlyByteBuf, ItemParticleOption> streamCodec
(ParticleType<ItemParticleOption> p_320881_)
-
Field Details
-
ITEM_CODEC
-
type
-
itemStack
-
-
Constructor Details
-
ItemParticleOption
-
-
Method Details
-
codec
public static com.mojang.serialization.MapCodec<ItemParticleOption> codec(ParticleType<ItemParticleOption> p_123711_) -
streamCodec
public static StreamCodec<? super RegistryFriendlyByteBuf,ItemParticleOption> streamCodec(ParticleType<ItemParticleOption> p_320881_) -
getType
- Specified by:
getType
in interfaceParticleOptions
-
getItem
-