Package net.minecraftforge.fluids
Class ForgeFlowingFluid
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Fluid>
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraftforge.fluids.ForgeFlowingFluid
- All Implemented Interfaces:
IForgeFluid,IForgeRegistryEntry<Fluid>
- Direct Known Subclasses:
ForgeFlowingFluid.Flowing,ForgeFlowingFluid.Source
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Supplier<? extends LiquidBlock>private final FluidAttributes.Builderprivate final booleanprivate final floatprivate final intprivate final intprivate final intFields inherited from class net.minecraft.world.level.material.FlowingFluid
FALLING, LEVELFields inherited from class net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinitionFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForgeFlowingFluid(ForgeFlowingFluid.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeDestroyingBlock(LevelAccessor worldIn, BlockPos pos, BlockState state) protected booleancanBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) protected booleanprotected FluidAttributesCreates the fluid attributes object, which wilAl contain all the extended values for the fluid that aren't part of the vanilla system.protected BlockStatecreateLegacyBlock(FluidState state) protected intgetDropOff(LevelReader worldIn) protected floatprotected intgetSlopeFindDistance(LevelReader worldIn) intgetTickDelay(LevelReader level) booleanMethods inherited from class net.minecraft.world.level.material.FlowingFluid
canSpreadTo, 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.Fluid
animateTick, builtInRegistryHolder, defaultFluidState, getAttributes, getDripParticle, getStateDefinition, is, isEmpty, isRandomlyTicking, isSource, randomTick, registerDefaultStateMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluid
getExplosionResistance, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
Field Details
-
flowing
-
still
-
bucket
-
block
-
builder
-
canMultiply
private final boolean canMultiply -
slopeFindDistance
private final int slopeFindDistance -
levelDecreasePerBlock
private final int levelDecreasePerBlock -
explosionResistance
private final float explosionResistance -
tickRate
private final int tickRate
-
-
Constructor Details
-
ForgeFlowingFluid
-
-
Method Details
-
getFlowing
- Specified by:
getFlowingin classFlowingFluid
-
getSource
- Specified by:
getSourcein classFlowingFluid
-
canConvertToSource
protected boolean canConvertToSource()- Specified by:
canConvertToSourcein classFlowingFluid
-
beforeDestroyingBlock
- Specified by:
beforeDestroyingBlockin classFlowingFluid
-
getSlopeFindDistance
- Specified by:
getSlopeFindDistancein classFlowingFluid
-
getDropOff
- Specified by:
getDropOffin classFlowingFluid
-
getBucket
-
canBeReplacedWith
protected boolean canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) - Specified by:
canBeReplacedWithin classFluid
-
getTickDelay
- Specified by:
getTickDelayin classFluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classFluid
-
createLegacyBlock
- Specified by:
createLegacyBlockin classFluid
-
isSame
-
getPickupSound
- Overrides:
getPickupSoundin classFluid
-
createAttributes
Description copied from class:FluidCreates the fluid attributes object, which wilAl contain all the extended values for the fluid that aren't part of the vanilla system. Do not call this from outside. To retrieve the values useFluid.getAttributes()- Overrides:
createAttributesin classFluid
-