类 BaseFlowingFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.neoforged.neoforge.fluids.BaseFlowingFluid
- 所有已实现的接口:
IFluidExtension
Base implementation of a
FlowingFluid
for mods to use.- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static class
static class
从类继承的嵌套类/接口 net.minecraft.world.level.material.FlowingFluid
FlowingFluid.SpreadContext
-
字段概要
字段修饰符和类型字段说明private final @Nullable Supplier
<? extends LiquidBlock> private final float
private final int
private final int
private final int
从类继承的字段 net.minecraft.world.level.material.FlowingFluid
FALLING, LEVEL
从类继承的字段 net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinition
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
beforeDestroyingBlock
(LevelAccessor worldIn, BlockPos pos, BlockState state) protected boolean
canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) protected boolean
canConvertToSource
(ServerLevel level) boolean
canConvertToSource
(FluidState state, ServerLevel level, BlockPos pos) Returns whether the fluid can create a source.protected BlockState
createLegacyBlock
(FluidState state) protected int
getDropOff
(LevelReader worldIn) protected float
Returns the type of this fluid.protected int
getSlopeFindDistance
(LevelReader worldIn) int
getTickDelay
(LevelReader level) boolean
从类继承的方法 net.minecraft.world.level.material.FlowingFluid
createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tick
从类继承的方法 net.minecraft.world.level.material.Fluid
animateTick, builtInRegistryHolder, defaultFluidState, entityInside, getAABB, getDripParticle, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultState, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.common.extensions.IFluidExtension
canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
字段详细资料
-
fluidType
-
flowing
-
still
-
bucket
-
block
-
slopeFindDistance
private final int slopeFindDistance -
levelDecreasePerBlock
private final int levelDecreasePerBlock -
explosionResistance
private final float explosionResistance -
tickRate
private final int tickRate
-
-
构造器详细资料
-
BaseFlowingFluid
-
-
方法详细资料
-
getFluidType
从接口复制的说明:IFluidExtension
Returns the type of this fluid.Important: This MUST be overridden on your fluid, otherwise an error will be thrown.
- 指定者:
getFluidType
在接口中IFluidExtension
- 覆盖:
getFluidType
在类中Fluid
- 返回:
- the type of this fluid
-
getFlowing
- 指定者:
getFlowing
在类中FlowingFluid
-
getSource
- 指定者:
getSource
在类中FlowingFluid
-
canConvertToSource
- 指定者:
canConvertToSource
在类中FlowingFluid
-
canConvertToSource
从接口复制的说明:IFluidExtension
Returns whether the fluid can create a source.- 指定者:
canConvertToSource
在接口中IFluidExtension
- 覆盖:
canConvertToSource
在类中FlowingFluid
- 参数:
state
- the state of the fluidlevel
- the level that can get the fluidpos
- the location of the fluid- 返回:
true
if the fluid can create a source,false
otherwise
-
beforeDestroyingBlock
- 指定者:
beforeDestroyingBlock
在类中FlowingFluid
-
getSlopeFindDistance
- 指定者:
getSlopeFindDistance
在类中FlowingFluid
-
getDropOff
- 指定者:
getDropOff
在类中FlowingFluid
-
getBucket
-
canBeReplacedWith
protected boolean canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) - 指定者:
canBeReplacedWith
在类中Fluid
-
getTickDelay
- 指定者:
getTickDelay
在类中Fluid
-
getExplosionResistance
protected float getExplosionResistance()- 指定者:
getExplosionResistance
在类中Fluid
-
createLegacyBlock
- 指定者:
createLegacyBlock
在类中Fluid
-
isSame
-
getPickupSound
- 覆盖:
getPickupSound
在类中Fluid
-