类 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 p_230550_, BlockPos p_230551_, FluidState p_230552_, RandomSource p_230553_) 已过时。protected abstract boolean
canBeReplacedWith
(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) protected void
protected abstract BlockState
createLegacyBlock
(FluidState p_76136_) final FluidState
abstract int
getAmount
(FluidState p_76141_) abstract Item
protected ParticleOptions
protected abstract float
protected abstract Vec3
getFlow
(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) Returns the type of this fluid.abstract float
getHeight
(FluidState p_76124_, BlockGetter p_76125_, BlockPos p_76126_) abstract float
getOwnHeight
(FluidState p_76123_) abstract VoxelShape
getShape
(FluidState p_76137_, BlockGetter p_76138_, BlockPos p_76139_) abstract int
getTickDelay
(LevelReader p_76120_) boolean
已过时。protected boolean
isEmpty()
protected boolean
boolean
abstract boolean
isSource
(FluidState p_76140_) protected void
randomTick
(ServerLevel p_363339_, BlockPos p_230555_, FluidState p_230556_, RandomSource p_230557_) protected final void
registerDefaultState
(FluidState p_76143_) protected void
tick
(ServerLevel p_369347_, BlockPos p_76114_, BlockState p_361596_, FluidState p_76115_) 从类继承的方法 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, shouldUpdateWhileBoating, supportsBoating
-
字段详细资料
-
FLUID_STATE_REGISTRY
-
stateDefinition
-
defaultFluidState
-
builtInRegistryHolder
-
forgeFluidType
-
-
构造器详细资料
-
Fluid
protected Fluid()
-
-
方法详细资料
-
createFluidStateDefinition
-
getStateDefinition
-
registerDefaultState
-
defaultFluidState
-
getBucket
-
animateTick
protected void animateTick(Level p_230550_, BlockPos p_230551_, FluidState p_230552_, RandomSource p_230553_) -
tick
protected void tick(ServerLevel p_369347_, BlockPos p_76114_, BlockState p_361596_, FluidState p_76115_) -
randomTick
protected void randomTick(ServerLevel p_363339_, BlockPos p_230555_, FluidState p_230556_, RandomSource p_230557_) -
getDripParticle
-
canBeReplacedWith
protected abstract boolean canBeReplacedWith(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) -
getFlow
-
getTickDelay
-
isRandomlyTicking
protected boolean isRandomlyTicking() -
isEmpty
protected boolean isEmpty() -
getExplosionResistance
protected abstract float getExplosionResistance() -
getHeight
-
getOwnHeight
-
createLegacyBlock
-
isSource
-
getAmount
-
isSame
-
is
已过时。 -
getShape
-
getPickupSound
-
builtInRegistryHolder
已过时。 -
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
-