public abstract class FlowingFluid extends Fluid
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
FALLING |
private static java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block.RenderSideCacheKey>> |
field_212756_e |
private java.util.Map<IFluidState,VoxelShape> |
field_215669_f |
static IntegerProperty |
LEVEL_1_8 |
STATE_REGISTRY, stateContainer
delegate
Constructor and Description |
---|
FlowingFluid() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
beforeReplacingBlock(IWorld worldIn,
BlockPos pos,
BlockState state) |
protected IFluidState |
calculateCorrectFlowingState(IWorldReader worldIn,
BlockPos pos,
BlockState blockStateIn) |
protected boolean |
canFlow(IBlockReader worldIn,
BlockPos fromPos,
BlockState fromBlockState,
Direction direction,
BlockPos toPos,
BlockState toBlockState,
IFluidState toFluidState,
Fluid fluidIn) |
protected abstract boolean |
canSourcesMultiply() |
protected boolean |
causesDownwardCurrent(IBlockReader worldIn,
BlockPos neighborPos,
Direction side) |
private boolean |
doesSideHaveHoles(Direction p_212751_1_,
IBlockReader p_212751_2_,
BlockPos p_212751_3_,
BlockState p_212751_4_,
BlockPos p_212751_5_,
BlockState p_212751_6_) |
protected void |
fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
protected void |
flowAround(IWorld worldIn,
BlockPos pos,
IFluidState stateIn) |
protected void |
flowInto(IWorld worldIn,
BlockPos pos,
BlockState blockStateIn,
Direction direction,
IFluidState fluidStateIn) |
protected int |
func_205571_a(IWorldReader p_205571_1_,
BlockPos p_205571_2_,
int p_205571_3_,
Direction p_205571_4_,
BlockState p_205571_5_,
BlockPos p_205571_6_,
it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState,IFluidState>> p_205571_7_,
it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_205571_8_) |
protected java.util.Map<Direction,IFluidState> |
func_205572_b(IWorldReader p_205572_1_,
BlockPos p_205572_2_,
BlockState p_205572_3_) |
private void |
func_207937_a(IWorld p_207937_1_,
BlockPos p_207937_2_,
IFluidState p_207937_3_,
BlockState p_207937_4_) |
private boolean |
func_211759_a(IBlockReader p_211759_1_,
Fluid p_211759_2_,
BlockPos p_211759_3_,
BlockState p_211759_4_,
BlockPos p_211759_5_,
BlockState p_211759_6_) |
private boolean |
func_211760_a(IBlockReader p_211760_1_,
Fluid p_211760_2_,
BlockPos p_211760_3_,
BlockState p_211760_4_,
Direction p_211760_5_,
BlockPos p_211760_6_,
BlockState p_211760_7_,
IFluidState p_211760_8_) |
private static short |
func_212752_a(BlockPos p_212752_0_,
BlockPos p_212752_1_) |
VoxelShape |
func_215664_b(IFluidState p_215664_1_,
IBlockReader p_215664_2_,
BlockPos p_215664_3_) |
protected int |
func_215667_a(World p_215667_1_,
BlockPos p_215667_2_,
IFluidState p_215667_3_,
IFluidState p_215667_4_) |
float |
getActualHeight(IFluidState p_215662_1_,
IBlockReader p_215662_2_,
BlockPos p_215662_3_) |
Vec3d |
getFlow(IBlockReader p_215663_1_,
BlockPos p_215663_2_,
IFluidState p_215663_3_) |
abstract Fluid |
getFlowingFluid() |
IFluidState |
getFlowingFluidState(int level,
boolean falling) |
float |
getHeight(IFluidState p_223407_1_) |
protected abstract int |
getLevelDecreasePerBlock(IWorldReader worldIn) |
protected static int |
getLevelFromState(IFluidState state) |
private int |
getNumHorizontallyAdjacentSources(IWorldReader worldIn,
BlockPos pos) |
protected abstract int |
getSlopeFindDistance(IWorldReader worldIn) |
abstract Fluid |
getStillFluid() |
IFluidState |
getStillFluidState(boolean falling) |
private boolean |
isBlocked(IBlockReader worldIn,
BlockPos pos,
BlockState state,
Fluid fluidIn) |
private static boolean |
isFullHeight(IFluidState p_215666_0_,
IBlockReader p_215666_1_,
BlockPos p_215666_2_) |
private boolean |
isSameAs(IFluidState stateIn) |
private boolean |
isSameOrEmpty(IFluidState state) |
void |
tick(World worldIn,
BlockPos pos,
IFluidState state) |
animateTick, canDisplace, createAttributes, getAttributes, getBlockState, getDefaultState, getDripParticleData, getExplosionResistance, getFilledBucket, getLevel, getStateContainer, getTags, getTickRate, isEmpty, isEquivalentTo, 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 static final BooleanProperty FALLING
public static final IntegerProperty LEVEL_1_8
private static final java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block.RenderSideCacheKey>> field_212756_e
private final java.util.Map<IFluidState,VoxelShape> field_215669_f
protected void fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder)
fillStateContainer
in class Fluid
public Vec3d getFlow(IBlockReader p_215663_1_, BlockPos p_215663_2_, IFluidState p_215663_3_)
private boolean isSameOrEmpty(IFluidState state)
protected boolean causesDownwardCurrent(IBlockReader worldIn, BlockPos neighborPos, Direction side)
protected void flowAround(IWorld worldIn, BlockPos pos, IFluidState stateIn)
private void func_207937_a(IWorld p_207937_1_, BlockPos p_207937_2_, IFluidState p_207937_3_, BlockState p_207937_4_)
protected IFluidState calculateCorrectFlowingState(IWorldReader worldIn, BlockPos pos, BlockState blockStateIn)
private boolean doesSideHaveHoles(Direction p_212751_1_, IBlockReader p_212751_2_, BlockPos p_212751_3_, BlockState p_212751_4_, BlockPos p_212751_5_, BlockState p_212751_6_)
public abstract Fluid getFlowingFluid()
public IFluidState getFlowingFluidState(int level, boolean falling)
public abstract Fluid getStillFluid()
public IFluidState getStillFluidState(boolean falling)
protected abstract boolean canSourcesMultiply()
protected void flowInto(IWorld worldIn, BlockPos pos, BlockState blockStateIn, Direction direction, IFluidState fluidStateIn)
protected abstract void beforeReplacingBlock(IWorld worldIn, BlockPos pos, BlockState state)
protected int func_205571_a(IWorldReader p_205571_1_, BlockPos p_205571_2_, int p_205571_3_, Direction p_205571_4_, BlockState p_205571_5_, BlockPos p_205571_6_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState,IFluidState>> p_205571_7_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_205571_8_)
private boolean func_211759_a(IBlockReader p_211759_1_, Fluid p_211759_2_, BlockPos p_211759_3_, BlockState p_211759_4_, BlockPos p_211759_5_, BlockState p_211759_6_)
private boolean func_211760_a(IBlockReader p_211760_1_, Fluid p_211760_2_, BlockPos p_211760_3_, BlockState p_211760_4_, Direction p_211760_5_, BlockPos p_211760_6_, BlockState p_211760_7_, IFluidState p_211760_8_)
private boolean isSameAs(IFluidState stateIn)
protected abstract int getSlopeFindDistance(IWorldReader worldIn)
private int getNumHorizontallyAdjacentSources(IWorldReader worldIn, BlockPos pos)
protected java.util.Map<Direction,IFluidState> func_205572_b(IWorldReader p_205572_1_, BlockPos p_205572_2_, BlockState p_205572_3_)
private boolean isBlocked(IBlockReader worldIn, BlockPos pos, BlockState state, Fluid fluidIn)
protected boolean canFlow(IBlockReader worldIn, BlockPos fromPos, BlockState fromBlockState, Direction direction, BlockPos toPos, BlockState toBlockState, IFluidState toFluidState, Fluid fluidIn)
protected abstract int getLevelDecreasePerBlock(IWorldReader worldIn)
protected int func_215667_a(World p_215667_1_, BlockPos p_215667_2_, IFluidState p_215667_3_, IFluidState p_215667_4_)
public void tick(World worldIn, BlockPos pos, IFluidState state)
protected static int getLevelFromState(IFluidState state)
private static boolean isFullHeight(IFluidState p_215666_0_, IBlockReader p_215666_1_, BlockPos p_215666_2_)
public float getActualHeight(IFluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_)
getActualHeight
in class Fluid
public float getHeight(IFluidState p_223407_1_)
public VoxelShape func_215664_b(IFluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_)
func_215664_b
in class Fluid