Modifier and Type | Method and Description |
---|---|
boolean |
StatePropertiesPredicate.matches(IFluidState p_227185_1_) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<IFluidState> |
FlowingFluidBlock.field_212565_c |
Modifier and Type | Method and Description |
---|---|
boolean |
SeaGrassBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
KelpBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
KelpTopBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
CampfireBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
ILiquidContainer.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
TallSeaGrassBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
default boolean |
IWaterLoggable.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
boolean |
SlabBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
ActiveRenderInfo.getFluidState() |
Modifier and Type | Method and Description |
---|---|
static boolean |
RenderTypeLookup.canRenderInLayer(IFluidState fluid,
RenderType type) |
static RenderType |
RenderTypeLookup.getRenderType(IFluidState fluidStateIn)
Deprecated.
|
private static boolean |
FluidBlockRenderer.isAdjacentFluidSameAs(IBlockReader worldIn,
BlockPos pos,
Direction side,
IFluidState state) |
boolean |
FluidBlockRenderer.render(ILightReader lightReaderIn,
BlockPos posIn,
IVertexBuilder vertexBuilderIn,
IFluidState fluidStateIn) |
boolean |
BlockRendererDispatcher.renderFluid(BlockPos posIn,
ILightReader lightReaderIn,
IVertexBuilder vertexBuilderIn,
IFluidState fluidStateIn) |
Modifier and Type | Field and Description |
---|---|
protected IFluidState[] |
ChunkRenderCache.fluidStates |
Modifier and Type | Method and Description |
---|---|
IFluidState |
ChunkRenderCache.getFluidState(BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
float |
Entity.getExplosionResistance(Explosion explosionIn,
IBlockReader worldIn,
BlockPos pos,
BlockState blockStateIn,
IFluidState p_180428_5_,
float p_180428_6_) |
Modifier and Type | Method and Description |
---|---|
float |
TNTMinecartEntity.getExplosionResistance(Explosion explosionIn,
IBlockReader worldIn,
BlockPos pos,
BlockState blockStateIn,
IFluidState p_180428_5_,
float p_180428_6_) |
Modifier and Type | Method and Description |
---|---|
float |
WitherSkullEntity.getExplosionResistance(Explosion explosionIn,
IBlockReader worldIn,
BlockPos pos,
BlockState blockStateIn,
IFluidState p_180428_5_,
float p_180428_6_) |
Modifier and Type | Class and Description |
---|---|
class |
FluidState |
Modifier and Type | Field and Description |
---|---|
private IFluidState |
Fluid.defaultState |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<IFluidState,VoxelShape> |
FlowingFluid.field_215669_f |
static ObjectIntIdentityMap<IFluidState> |
Fluid.STATE_REGISTRY |
protected StateContainer<Fluid,IFluidState> |
Fluid.stateContainer |
Modifier and Type | Method and Description |
---|---|
protected IFluidState |
FlowingFluid.calculateCorrectFlowingState(IWorldReader worldIn,
BlockPos pos,
BlockState blockStateIn) |
static <T> IFluidState |
IFluidState.deserialize(com.mojang.datafixers.Dynamic<T> p_215681_0_) |
IFluidState |
Fluid.getDefaultState() |
IFluidState |
FlowingFluid.getFlowingFluidState(int level,
boolean falling) |
IFluidState |
FlowingFluid.getStillFluidState(boolean falling) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<Direction,IFluidState> |
FlowingFluid.func_205572_b(IWorldReader p_205572_1_,
BlockPos p_205572_2_,
BlockState p_205572_3_) |
StateContainer<Fluid,IFluidState> |
Fluid.getStateContainer() |
Modifier and Type | Method and Description |
---|---|
protected void |
Fluid.animateTick(World worldIn,
BlockPos pos,
IFluidState state,
java.util.Random random) |
void |
WaterFluid.animateTick(World worldIn,
BlockPos pos,
IFluidState state,
java.util.Random random) |
void |
LavaFluid.animateTick(World worldIn,
BlockPos pos,
IFluidState state,
java.util.Random random) |
protected abstract boolean |
Fluid.canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
boolean |
EmptyFluid.canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
boolean |
WaterFluid.canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
boolean |
LavaFluid.canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
protected boolean |
FlowingFluid.canFlow(IBlockReader worldIn,
BlockPos fromPos,
BlockState fromBlockState,
Direction direction,
BlockPos toPos,
BlockState toBlockState,
IFluidState toFluidState,
Fluid fluidIn) |
protected void |
FlowingFluid.flowAround(IWorld worldIn,
BlockPos pos,
IFluidState stateIn) |
protected void |
FlowingFluid.flowInto(IWorld worldIn,
BlockPos pos,
BlockState blockStateIn,
Direction direction,
IFluidState fluidStateIn) |
protected void |
LavaFluid.flowInto(IWorld worldIn,
BlockPos pos,
BlockState blockStateIn,
Direction direction,
IFluidState fluidStateIn) |
private void |
FlowingFluid.func_207937_a(IWorld p_207937_1_,
BlockPos p_207937_2_,
IFluidState p_207937_3_,
BlockState p_207937_4_) |
private boolean |
FlowingFluid.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_) |
abstract VoxelShape |
Fluid.func_215664_b(IFluidState p_215664_1_,
IBlockReader p_215664_2_,
BlockPos p_215664_3_) |
VoxelShape |
EmptyFluid.func_215664_b(IFluidState p_215664_1_,
IBlockReader p_215664_2_,
BlockPos p_215664_3_) |
VoxelShape |
FlowingFluid.func_215664_b(IFluidState p_215664_1_,
IBlockReader p_215664_2_,
BlockPos p_215664_3_) |
protected int |
FlowingFluid.func_215667_a(World p_215667_1_,
BlockPos p_215667_2_,
IFluidState p_215667_3_,
IFluidState p_215667_4_) |
int |
LavaFluid.func_215667_a(World p_215667_1_,
BlockPos p_215667_2_,
IFluidState p_215667_3_,
IFluidState p_215667_4_) |
abstract float |
Fluid.getActualHeight(IFluidState p_215662_1_,
IBlockReader p_215662_2_,
BlockPos p_215662_3_) |
float |
EmptyFluid.getActualHeight(IFluidState p_215662_1_,
IBlockReader p_215662_2_,
BlockPos p_215662_3_) |
float |
FlowingFluid.getActualHeight(IFluidState p_215662_1_,
IBlockReader p_215662_2_,
BlockPos p_215662_3_) |
protected abstract BlockState |
Fluid.getBlockState(IFluidState state) |
protected BlockState |
EmptyFluid.getBlockState(IFluidState state) |
BlockState |
WaterFluid.getBlockState(IFluidState state) |
BlockState |
LavaFluid.getBlockState(IFluidState state) |
protected abstract Vec3d |
Fluid.getFlow(IBlockReader p_215663_1_,
BlockPos p_215663_2_,
IFluidState p_215663_3_) |
Vec3d |
EmptyFluid.getFlow(IBlockReader p_215663_1_,
BlockPos p_215663_2_,
IFluidState p_215663_3_) |
Vec3d |
FlowingFluid.getFlow(IBlockReader p_215663_1_,
BlockPos p_215663_2_,
IFluidState p_215663_3_) |
abstract float |
Fluid.getHeight(IFluidState p_223407_1_) |
float |
EmptyFluid.getHeight(IFluidState p_223407_1_) |
float |
FlowingFluid.getHeight(IFluidState p_223407_1_) |
abstract int |
Fluid.getLevel(IFluidState p_207192_1_) |
int |
EmptyFluid.getLevel(IFluidState p_207192_1_) |
int |
WaterFluid.Flowing.getLevel(IFluidState p_207192_1_) |
int |
WaterFluid.Source.getLevel(IFluidState p_207192_1_) |
int |
LavaFluid.Flowing.getLevel(IFluidState p_207192_1_) |
int |
LavaFluid.Source.getLevel(IFluidState p_207192_1_) |
protected static int |
FlowingFluid.getLevelFromState(IFluidState state) |
private static boolean |
FlowingFluid.isFullHeight(IFluidState p_215666_0_,
IBlockReader p_215666_1_,
BlockPos p_215666_2_) |
private boolean |
FlowingFluid.isSameAs(IFluidState stateIn) |
private boolean |
FlowingFluid.isSameOrEmpty(IFluidState state) |
abstract boolean |
Fluid.isSource(IFluidState state) |
boolean |
EmptyFluid.isSource(IFluidState state) |
boolean |
WaterFluid.Flowing.isSource(IFluidState state) |
boolean |
WaterFluid.Source.isSource(IFluidState state) |
boolean |
LavaFluid.Flowing.isSource(IFluidState state) |
boolean |
LavaFluid.Source.isSource(IFluidState state) |
protected void |
Fluid.randomTick(World p_207186_1_,
BlockPos pos,
IFluidState state,
java.util.Random random) |
void |
LavaFluid.randomTick(World p_207186_1_,
BlockPos pos,
IFluidState state,
java.util.Random random) |
static <T> com.mojang.datafixers.Dynamic<T> |
IFluidState.serialize(com.mojang.datafixers.types.DynamicOps<T> p_215680_0_,
IFluidState p_215680_1_) |
protected void |
Fluid.setDefaultState(IFluidState state) |
protected void |
Fluid.tick(World worldIn,
BlockPos pos,
IFluidState state) |
void |
FlowingFluid.tick(World worldIn,
BlockPos pos,
IFluidState state) |
Modifier and Type | Method and Description |
---|---|
protected void |
Fluid.fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
protected void |
FlowingFluid.fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
protected void |
WaterFluid.Flowing.fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
protected void |
LavaFluid.Flowing.fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
protected int |
FlowingFluid.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_) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<IFluidState> |
RayTraceContext.FluidMode.fluidTest |
Modifier and Type | Method and Description |
---|---|
VoxelShape |
RayTraceContext.getFluidShape(IFluidState p_222252_1_,
IBlockReader p_222252_2_,
BlockPos p_222252_3_) |
boolean |
RayTraceContext.FluidMode.test(IFluidState state) |
Constructor and Description |
---|
FluidMode(java.util.function.Predicate<IFluidState> fluidTestIn) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
World.getFluidState(BlockPos pos) |
IFluidState |
Region.getFluidState(BlockPos pos) |
IFluidState |
IBlockReader.getFluidState(BlockPos pos) |
IFluidState |
EmptyBlockReader.getFluidState(BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
ChunkPrimer.getFluidState(BlockPos pos) |
IFluidState |
ChunkPrimerWrapper.getFluidState(BlockPos pos) |
IFluidState |
EmptyChunk.getFluidState(BlockPos pos) |
IFluidState |
Chunk.getFluidState(BlockPos pos) |
IFluidState |
Chunk.getFluidState(int bx,
int by,
int bz) |
IFluidState |
ChunkSection.getFluidState(int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
WorldGenRegion.getFluidState(BlockPos pos) |
Modifier and Type | Field and Description |
---|---|
protected static IFluidState |
WorldCarver.LAVA |
protected static IFluidState |
WorldCarver.WATER |
Modifier and Type | Field and Description |
---|---|
IFluidState |
LiquidsConfig.state |
Constructor and Description |
---|
LiquidsConfig(IFluidState p_i225841_1_,
boolean p_i225841_2_,
int p_i225841_3_,
int p_i225841_4_,
java.util.Set<Block> p_i225841_5_) |
Modifier and Type | Method and Description |
---|---|
static boolean |
WorldEntitySpawner.isSpawnableSpace(IBlockReader worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
Modifier and Type | Method and Description |
---|---|
static TextureAtlasSprite[] |
ForgeHooksClient.getFluidSprites(ILightReader world,
BlockPos pos,
IFluidState fluidStateIn) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
ForgeHooks.DummyBlockReader.getFluidState(BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
default IFluidState |
IForgeFluidState.getFluidState() |
Modifier and Type | Method and Description |
---|---|
default float |
IForgeFluid.getExplosionResistance(IFluidState state,
IWorldReader world,
BlockPos pos,
Entity exploder,
Explosion explosion)
Location sensitive version of getExplosionResistance
|
default java.lang.Boolean |
IForgeFluid.isAABBInsideLiquid(IFluidState state,
IWorldReader world,
BlockPos pos,
AxisAlignedBB boundingBox)
Called when entities are moving to check if they are inside a liquid
|
default java.lang.Boolean |
IForgeFluid.isAABBInsideMaterial(IFluidState state,
IWorldReader world,
BlockPos pos,
AxisAlignedBB boundingBox,
Material materialIn)
Called when boats or fishing hooks are inside the block to check if they are inside
the material requested.
|
default boolean |
IForgeFluid.isEntityInside(IFluidState state,
IWorldReader world,
BlockPos pos,
Entity entity,
double yToTest,
Tag<Fluid> tag,
boolean testingHead)
Called when the entity is inside this block, may be used to determined if the entity can breathing,
display material overlays, or if the entity can swim inside a block.
|
default boolean |
IForgeBlock.removedByPlayer(BlockState state,
World world,
BlockPos pos,
PlayerEntity player,
boolean willHarvest,
IFluidState fluid)
Called when a player removes a block.
|
default boolean |
IForgeBlockState.removedByPlayer(World world,
BlockPos pos,
PlayerEntity player,
boolean willHarvest,
IFluidState fluid)
Called when a player removes a block.
|
default boolean |
IForgeBlock.shouldDisplayFluidOverlay(BlockState state,
ILightReader world,
BlockPos pos,
IFluidState fluidState)
Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.
|
default boolean |
IForgeBlockState.shouldDisplayFluidOverlay(ILightReader world,
BlockPos pos,
IFluidState fluidState)
Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.
|
Modifier and Type | Method and Description |
---|---|
IFluidState |
NewFluidTest.FluidloggableBlock.getFluidState(BlockState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
NewFluidTest.FluidloggableBlock.receiveFluid(IWorld worldIn,
BlockPos pos,
BlockState state,
IFluidState fluidStateIn) |
Modifier and Type | Method and Description |
---|---|
IFluidState |
FluidAttributes.getStateForPlacement(ILightReader reader,
BlockPos pos,
FluidStack state) |
Modifier and Type | Method and Description |
---|---|
boolean |
FluidAttributes.canBePlacedInWorld(ILightReader reader,
BlockPos pos,
IFluidState state) |
protected boolean |
ForgeFlowingFluid.canDisplace(IFluidState state,
IBlockReader world,
BlockPos pos,
Fluid fluidIn,
Direction direction) |
BlockState |
FluidAttributes.getBlock(ILightReader reader,
BlockPos pos,
IFluidState state) |
protected BlockState |
ForgeFlowingFluid.getBlockState(IFluidState state) |
int |
ForgeFlowingFluid.Flowing.getLevel(IFluidState state) |
int |
ForgeFlowingFluid.Source.getLevel(IFluidState state) |
boolean |
ForgeFlowingFluid.Flowing.isSource(IFluidState state) |
boolean |
ForgeFlowingFluid.Source.isSource(IFluidState state) |
Modifier and Type | Method and Description |
---|---|
protected void |
ForgeFlowingFluid.Flowing.fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |