Package net.minecraftforge.fluids
Class ForgeFlowingFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraftforge.fluids.ForgeFlowingFluid
- All Implemented Interfaces:
- IForgeFluid
- Direct Known Subclasses:
- ForgeFlowingFluid.Flowing,- ForgeFlowingFluid.Source
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final @Nullable Supplier<? extends LiquidBlock>private final floatprivate final intprivate final intprivate final intFields inherited from class net.minecraft.world.level.material.FlowingFluidFALLING, LEVELFields inherited from class net.minecraft.world.level.material.FluidFLUID_STATE_REGISTRY, stateDefinition
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedForgeFlowingFluid(ForgeFlowingFluid.Properties properties) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbeforeDestroyingBlock(LevelAccessor worldIn, BlockPos pos, BlockState state) protected booleancanBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) protected booleancanConvertToSource(Level level) booleancanConvertToSource(FluidState state, Level level, BlockPos pos) Returns whether the fluid can create a source.protected BlockStatecreateLegacyBlock(FluidState state) protected intgetDropOff(LevelReader worldIn) protected floatReturns the type of this fluid.@NotNull Optional<SoundEvent>protected intgetSlopeFindDistance(LevelReader worldIn) intgetTickDelay(LevelReader level) booleanMethods inherited from class net.minecraft.world.level.material.FlowingFluidcanSpreadTo, createFluidStateDefinition, getAmount, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tickMethods inherited from class net.minecraft.world.level.material.FluidanimateTick, builtInRegistryHolder, defaultFluidState, getDripParticle, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultStateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluidcanExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, shouldUpdateWhileBoating, supportsBoating
- 
Field Details- 
fluidType
- 
flowing
- 
still
- 
bucket
- 
block
- 
slopeFindDistanceprivate final int slopeFindDistance
- 
levelDecreasePerBlockprivate final int levelDecreasePerBlock
- 
explosionResistanceprivate final float explosionResistance
- 
tickRateprivate final int tickRate
 
- 
- 
Constructor Details- 
ForgeFlowingFluid
 
- 
- 
Method Details- 
getFluidTypeDescription copied from interface:IForgeFluidReturns the type of this fluid.Important: This MUST be overridden on your fluid, otherwise an error will be thrown. - Specified by:
- getFluidTypein interface- IForgeFluid
- Overrides:
- getFluidTypein class- Fluid
- Returns:
- the type of this fluid
 
- 
getFlowing- Specified by:
- getFlowingin class- FlowingFluid
 
- 
getSource- Specified by:
- getSourcein class- FlowingFluid
 
- 
canConvertToSource- Specified by:
- canConvertToSourcein class- FlowingFluid
 
- 
canConvertToSourceDescription copied from interface:IForgeFluidReturns whether the fluid can create a source.- Specified by:
- canConvertToSourcein interface- IForgeFluid
- Overrides:
- canConvertToSourcein class- FlowingFluid
- Parameters:
- state- the state of the fluid
- level- the level that can get the fluid
- pos- the location of the fluid
- Returns:
- trueif the fluid can create a source,- falseotherwise
 
- 
beforeDestroyingBlock- Specified by:
- beforeDestroyingBlockin class- FlowingFluid
 
- 
getSlopeFindDistance- Specified by:
- getSlopeFindDistancein class- FlowingFluid
 
- 
getDropOff- Specified by:
- getDropOffin class- FlowingFluid
 
- 
getBucket
- 
canBeReplacedWithprotected boolean canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) - Specified by:
- canBeReplacedWithin class- Fluid
 
- 
getTickDelay- Specified by:
- getTickDelayin class- Fluid
 
- 
getExplosionResistanceprotected float getExplosionResistance()- Specified by:
- getExplosionResistancein class- Fluid
 
- 
createLegacyBlock- Specified by:
- createLegacyBlockin class- Fluid
 
- 
isSame
- 
getPickupSound- Overrides:
- getPickupSoundin class- Fluid
 
 
-