public abstract class ForgeFlowingFluid extends FlowingFluid
Modifier and Type | Class and Description |
---|---|
static class |
ForgeFlowingFluid.Flowing |
static class |
ForgeFlowingFluid.Properties |
static class |
ForgeFlowingFluid.Source |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<? extends FlowingFluidBlock> |
block |
private java.util.function.Supplier<? extends Item> |
bucket |
private FluidAttributes.Builder |
builder |
private boolean |
canMultiply |
private float |
explosionResistance |
private java.util.function.Supplier<? extends Fluid> |
flowing |
private int |
levelDecreasePerBlock |
private int |
slopeFindDistance |
private java.util.function.Supplier<? extends Fluid> |
still |
private int |
tickRate |
FALLING, LEVEL_1_8
STATE_REGISTRY, stateContainer
delegate
Modifier | Constructor and Description |
---|---|
protected |
ForgeFlowingFluid(ForgeFlowingFluid.Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeReplacingBlock(IWorld worldIn,
BlockPos pos,
BlockState state) |
protected boolean |
canDisplace(IFluidState state,
IBlockReader world,
BlockPos pos,
Fluid fluidIn,
Direction direction) |
protected boolean |
canSourcesMultiply() |
protected FluidAttributes |
createAttributes()
Creates the fluid attributes object, which will contain all the extended values for the fluid that aren't part of the vanilla system.
|
protected BlockState |
getBlockState(IFluidState state) |
protected float |
getExplosionResistance() |
Item |
getFilledBucket() |
Fluid |
getFlowingFluid() |
protected int |
getLevelDecreasePerBlock(IWorldReader worldIn) |
protected int |
getSlopeFindDistance(IWorldReader worldIn) |
Fluid |
getStillFluid() |
int |
getTickRate(IWorldReader world) |
boolean |
isEquivalentTo(Fluid fluidIn) |
calculateCorrectFlowingState, canFlow, causesDownwardCurrent, fillStateContainer, flowAround, flowInto, func_205571_a, func_205572_b, func_215664_b, func_215667_a, getActualHeight, getFlow, getFlowingFluidState, getHeight, getLevelFromState, getStillFluidState, tick
animateTick, getAttributes, getDefaultState, getDripParticleData, getLevel, getStateContainer, getTags, isEmpty, isIn, isSource, randomTick, setDefaultState, ticksRandomly
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExplosionResistance, getFluid, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
private final java.util.function.Supplier<? extends Fluid> flowing
private final java.util.function.Supplier<? extends Fluid> still
@Nullable private final java.util.function.Supplier<? extends Item> bucket
@Nullable private final java.util.function.Supplier<? extends FlowingFluidBlock> block
private final FluidAttributes.Builder builder
private final boolean canMultiply
private final int slopeFindDistance
private final int levelDecreasePerBlock
private final float explosionResistance
private final int tickRate
protected ForgeFlowingFluid(ForgeFlowingFluid.Properties properties)
public Fluid getFlowingFluid()
getFlowingFluid
in class FlowingFluid
public Fluid getStillFluid()
getStillFluid
in class FlowingFluid
protected boolean canSourcesMultiply()
canSourcesMultiply
in class FlowingFluid
protected void beforeReplacingBlock(IWorld worldIn, BlockPos pos, BlockState state)
beforeReplacingBlock
in class FlowingFluid
protected int getSlopeFindDistance(IWorldReader worldIn)
getSlopeFindDistance
in class FlowingFluid
protected int getLevelDecreasePerBlock(IWorldReader worldIn)
getLevelDecreasePerBlock
in class FlowingFluid
public Item getFilledBucket()
getFilledBucket
in class Fluid
protected boolean canDisplace(IFluidState state, IBlockReader world, BlockPos pos, Fluid fluidIn, Direction direction)
canDisplace
in class Fluid
public int getTickRate(IWorldReader world)
getTickRate
in class Fluid
protected float getExplosionResistance()
getExplosionResistance
in class Fluid
protected BlockState getBlockState(IFluidState state)
getBlockState
in class Fluid
public boolean isEquivalentTo(Fluid fluidIn)
isEquivalentTo
in class Fluid
protected FluidAttributes createAttributes()
Fluid
Fluid.getAttributes()
createAttributes
in class Fluid