public abstract class WaterFluid extends FlowingFluid
Modifier and Type | Class and Description |
---|---|
static class |
WaterFluid.Flowing |
static class |
WaterFluid.Source |
FALLING, LEVEL_1_8
STATE_REGISTRY, stateContainer
delegate
Constructor and Description |
---|
WaterFluid() |
Modifier and Type | Method and Description |
---|---|
void |
animateTick(World worldIn,
BlockPos pos,
IFluidState state,
java.util.Random random) |
protected void |
beforeReplacingBlock(IWorld worldIn,
BlockPos pos,
BlockState state) |
boolean |
canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
protected boolean |
canSourcesMultiply() |
BlockState |
getBlockState(IFluidState state) |
IParticleData |
getDripParticleData() |
protected float |
getExplosionResistance() |
Item |
getFilledBucket() |
Fluid |
getFlowingFluid() |
int |
getLevelDecreasePerBlock(IWorldReader worldIn) |
int |
getSlopeFindDistance(IWorldReader worldIn) |
Fluid |
getStillFluid() |
int |
getTickRate(IWorldReader p_205569_1_) |
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
createAttributes, getAttributes, getDefaultState, 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
public Fluid getFlowingFluid()
getFlowingFluid
in class FlowingFluid
public Fluid getStillFluid()
getStillFluid
in class FlowingFluid
public Item getFilledBucket()
getFilledBucket
in class Fluid
public void animateTick(World worldIn, BlockPos pos, IFluidState state, java.util.Random random)
animateTick
in class Fluid
@Nullable public IParticleData getDripParticleData()
getDripParticleData
in class Fluid
protected boolean canSourcesMultiply()
canSourcesMultiply
in class FlowingFluid
protected void beforeReplacingBlock(IWorld worldIn, BlockPos pos, BlockState state)
beforeReplacingBlock
in class FlowingFluid
public int getSlopeFindDistance(IWorldReader worldIn)
getSlopeFindDistance
in class FlowingFluid
public BlockState getBlockState(IFluidState state)
getBlockState
in class Fluid
public boolean isEquivalentTo(Fluid fluidIn)
isEquivalentTo
in class Fluid
public int getLevelDecreasePerBlock(IWorldReader worldIn)
getLevelDecreasePerBlock
in class FlowingFluid
public int getTickRate(IWorldReader p_205569_1_)
getTickRate
in class Fluid
public boolean canDisplace(IFluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
canDisplace
in class Fluid
protected float getExplosionResistance()
getExplosionResistance
in class Fluid