类 BlockParticleOption
java.lang.Object
net.minecraft.core.particles.BlockParticleOption
- 所有已实现的接口:
ParticleOptions
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.serialization.Codec
<BlockState> private final BlockPos
Neo: Position of the block this particle was spawned for, if available, to provide model data for the particle texture selectionprivate final BlockState
private final ParticleType
<BlockParticleOption> -
构造器概要
构造器构造器说明BlockParticleOption
(ParticleType<BlockParticleOption> p_123629_, BlockState p_123630_) BlockParticleOption
(ParticleType<BlockParticleOption> p_123629_, BlockState p_123630_, BlockPos pos) Neo: construct aBlockParticleOption
for the given type andBlockState
and optionally the position of the block this particle is being spawned for -
方法概要
修饰符和类型方法说明static com.mojang.serialization.MapCodec
<BlockParticleOption> codec
(ParticleType<BlockParticleOption> p_123635_) getPos()
Neo: returns the position of the block this particle was spawned for, if availablegetState()
getType()
static StreamCodec
<? super RegistryFriendlyByteBuf, BlockParticleOption> streamCodec
(ParticleType<BlockParticleOption> p_320740_)
-
字段详细资料
-
BLOCK_STATE_CODEC
-
type
-
state
-
pos
Neo: Position of the block this particle was spawned for, if available, to provide model data for the particle texture selection
-
-
构造器详细资料
-
BlockParticleOption
-
BlockParticleOption
public BlockParticleOption(ParticleType<BlockParticleOption> p_123629_, BlockState p_123630_, @Nullable BlockPos pos) Neo: construct aBlockParticleOption
for the given type andBlockState
and optionally the position of the block this particle is being spawned for
-
-
方法详细资料
-
codec
public static com.mojang.serialization.MapCodec<BlockParticleOption> codec(ParticleType<BlockParticleOption> p_123635_) -
streamCodec
public static StreamCodec<? super RegistryFriendlyByteBuf,BlockParticleOption> streamCodec(ParticleType<BlockParticleOption> p_320740_) -
getType
- 指定者:
getType
在接口中ParticleOptions
-
getState
-
getPos
Neo: returns the position of the block this particle was spawned for, if available
-