public abstract class WaterFluid extends FlowableFluid
Modifier and Type | Class and Description |
---|---|
static class |
WaterFluid.Flowing |
static class |
WaterFluid.Still |
FALLING, LEVEL
STATE_IDS, stateManager
Constructor and Description |
---|
WaterFluid() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeBreakingBlock(WorldAccess world,
BlockPos pos,
BlockState state) |
boolean |
canBeReplacedWith(FluidState state,
BlockView world,
BlockPos pos,
Fluid fluid,
Direction direction) |
protected float |
getBlastResistance() |
Item |
getBucketItem() |
Fluid |
getFlowing() |
int |
getFlowSpeed(WorldView world) |
int |
getLevelDecreasePerBlock(WorldView world) |
ParticleEffect |
getParticle() |
Fluid |
getStill() |
int |
getTickRate(WorldView world) |
protected boolean |
isInfinite() |
boolean |
matchesType(Fluid fluid) |
void |
randomDisplayTick(World world,
BlockPos pos,
FluidState state,
Random random) |
BlockState |
toBlockState(FluidState state) |
appendProperties, canFlow, flow, getFlowing, getHeight, getHeight, getNextTickDelay, getShape, getSpread, getStill, getUpdatedState, getVelocity, method_15741, method_15742, method_15749, onScheduledTick, tryFlow
getDefaultState, getLevel, getStateManager, hasRandomTicks, isEmpty, isIn, isStill, onRandomTick, setDefaultState
public Fluid getFlowing()
getFlowing
in class FlowableFluid
public Fluid getStill()
getStill
in class FlowableFluid
public Item getBucketItem()
getBucketItem
in class Fluid
@Environment(value=CLIENT) public void randomDisplayTick(World world, BlockPos pos, FluidState state, Random random)
randomDisplayTick
in class Fluid
@Environment(value=CLIENT) @Nullable public ParticleEffect getParticle()
getParticle
in class Fluid
protected boolean isInfinite()
isInfinite
in class FlowableFluid
protected void beforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state)
beforeBreakingBlock
in class FlowableFluid
public int getFlowSpeed(WorldView world)
getFlowSpeed
in class FlowableFluid
public BlockState toBlockState(FluidState state)
toBlockState
in class Fluid
public boolean matchesType(Fluid fluid)
matchesType
in class Fluid
public int getLevelDecreasePerBlock(WorldView world)
getLevelDecreasePerBlock
in class FlowableFluid
public int getTickRate(WorldView world)
getTickRate
in class Fluid
public boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
canBeReplacedWith
in class Fluid
protected float getBlastResistance()
getBlastResistance
in class Fluid