public abstract class WaterFluid extends FlowableFluid
| Modifier and Type | Class and Description |
|---|---|
static class |
WaterFluid.Flowing |
static class |
WaterFluid.Still |
FALLING, LEVELSTATE_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, tryFlowgetDefaultState, getLevel, getStateManager, hasRandomTicks, isEmpty, isIn, isStill, onRandomTick, setDefaultStatepublic Fluid getFlowing()
getFlowing in class FlowableFluidpublic Fluid getStill()
getStill in class FlowableFluidpublic 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 Fluidprotected boolean isInfinite()
isInfinite in class FlowableFluidprotected void beforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state)
beforeBreakingBlock in class FlowableFluidpublic int getFlowSpeed(WorldView world)
getFlowSpeed in class FlowableFluidpublic BlockState toBlockState(FluidState state)
toBlockState in class Fluidpublic boolean matchesType(Fluid fluid)
matchesType in class Fluidpublic int getLevelDecreasePerBlock(WorldView world)
getLevelDecreasePerBlock in class FlowableFluidpublic int getTickRate(WorldView world)
getTickRate in class Fluidpublic boolean canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
canBeReplacedWith in class Fluidprotected float getBlastResistance()
getBlastResistance in class Fluid