类 Fluid
java.lang.Object
net.minecraft.world.level.material.Fluid
- 所有已实现的接口:
IForgeFluid
- 直接已知子类:
EmptyFluid
,FlowingFluid
-
字段概要
字段修饰符和类型字段说明private final Holder.Reference<Fluid>
private FluidState
static final IdMapper<FluidState>
private FluidType
protected final StateDefinition<Fluid,
FluidState> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) 已过时。protected abstract boolean
canBeReplacedWith
(FluidState pState, BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) protected void
protected abstract BlockState
createLegacyBlock
(FluidState pState) final FluidState
abstract int
getAmount
(FluidState pState) abstract Item
protected ParticleOptions
protected abstract float
protected abstract Vec3
getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) Returns the type of this fluid.abstract float
getHeight
(FluidState pState, BlockGetter pLevel, BlockPos pPos) abstract float
getOwnHeight
(FluidState pState) abstract VoxelShape
getShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) abstract int
getTickDelay
(LevelReader pLevel) boolean
已过时。protected boolean
isEmpty()
protected boolean
boolean
abstract boolean
isSource
(FluidState pState) protected void
randomTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) protected final void
registerDefaultState
(FluidState pState) protected void
tick
(Level pLevel, BlockPos pPos, FluidState pState) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.extensions.IForgeFluid
canConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
字段详细资料
-
FLUID_STATE_REGISTRY
-
stateDefinition
-
defaultFluidState
-
builtInRegistryHolder
-
forgeFluidType
-
-
构造器详细资料
-
Fluid
protected Fluid()
-
-
方法详细资料
-
createFluidStateDefinition
-
getStateDefinition
-
registerDefaultState
-
defaultFluidState
-
getBucket
-
animateTick
-
tick
-
randomTick
-
getDripParticle
-
canBeReplacedWith
protected abstract boolean canBeReplacedWith(FluidState pState, BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) -
getFlow
-
getTickDelay
-
isRandomlyTicking
protected boolean isRandomlyTicking() -
isEmpty
protected boolean isEmpty() -
getExplosionResistance
protected abstract float getExplosionResistance() -
getHeight
-
getOwnHeight
-
createLegacyBlock
-
isSource
-
getAmount
-
isSame
-
is
已过时。 -
getShape
-
getFluidType
从接口复制的说明:IForgeFluid
Returns the type of this fluid.Important: This MUST be overridden on your fluid, otherwise an error will be thrown.
- 指定者:
getFluidType
在接口中IForgeFluid
- 返回:
- the type of this fluid
-
getPickupSound
-
builtInRegistryHolder
已过时。
-