Package net.minecraft.fluid
Class EmptyFluid
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Fluid>
-
- net.minecraft.fluid.Fluid
-
- net.minecraft.fluid.EmptyFluid
-
- All Implemented Interfaces:
IForgeFluid
,IForgeRegistryEntry<Fluid>
public class EmptyFluid extends Fluid
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraft.fluid.Fluid
FLUID_STATE_REGISTRY, stateDefinition
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description EmptyFluid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeReplacedWith(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
protected BlockState
createLegacyBlock(FluidState p_204527_1_)
int
getAmount(FluidState p_207192_1_)
Item
getBucket()
protected float
getExplosionResistance()
Vector3d
getFlow(IBlockReader p_215663_1_, BlockPos p_215663_2_, FluidState p_215663_3_)
float
getHeight(FluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_)
float
getOwnHeight(FluidState p_223407_1_)
VoxelShape
getShape(FluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_)
int
getTickDelay(IWorldReader p_205569_1_)
protected boolean
isEmpty()
boolean
isSource(FluidState p_207193_1_)
-
Methods inherited from class net.minecraft.fluid.Fluid
animateTick, createAttributes, createFluidStateDefinition, defaultFluidState, getAttributes, getDripParticle, getStateDefinition, getTags, is, isRandomlyTicking, isSame, randomTick, registerDefaultState, tick
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeFluid
getExplosionResistance, getFluid, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
-
-
-
Method Detail
-
canBeReplacedWith
public boolean canBeReplacedWith(FluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
- Specified by:
canBeReplacedWith
in classFluid
-
getFlow
public Vector3d getFlow(IBlockReader p_215663_1_, BlockPos p_215663_2_, FluidState p_215663_3_)
-
getTickDelay
public int getTickDelay(IWorldReader p_205569_1_)
- Specified by:
getTickDelay
in classFluid
-
getExplosionResistance
protected float getExplosionResistance()
- Specified by:
getExplosionResistance
in classFluid
-
getHeight
public float getHeight(FluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_)
-
getOwnHeight
public float getOwnHeight(FluidState p_223407_1_)
- Specified by:
getOwnHeight
in classFluid
-
createLegacyBlock
protected BlockState createLegacyBlock(FluidState p_204527_1_)
- Specified by:
createLegacyBlock
in classFluid
-
isSource
public boolean isSource(FluidState p_207193_1_)
-
getAmount
public int getAmount(FluidState p_207192_1_)
-
getShape
public VoxelShape getShape(FluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_)
-
-