public abstract class Fluid extends ForgeRegistryEntry<Fluid> implements IForgeFluid
Modifier and Type | Field and Description |
---|---|
private IFluidState |
defaultState |
private FluidAttributes |
forgeFluidAttributes |
private ReverseTagWrapper<Fluid> |
reverseTags |
static ObjectIntIdentityMap<IFluidState> |
STATE_REGISTRY |
protected StateContainer<Fluid,IFluidState> |
stateContainer |
delegate
Modifier | Constructor and Description |
---|---|
protected |
Fluid() |
Modifier and Type | Method and Description |
---|---|
protected void |
animateTick(World worldIn,
BlockPos pos,
IFluidState state,
java.util.Random random) |
protected abstract boolean |
canDisplace(IFluidState p_215665_1_,
IBlockReader p_215665_2_,
BlockPos p_215665_3_,
Fluid p_215665_4_,
Direction p_215665_5_) |
protected FluidAttributes |
createAttributes()
Creates the fluid attributes object, which will contain all the extended values for the fluid that aren't part of the vanilla system.
|
protected void |
fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder) |
abstract VoxelShape |
func_215664_b(IFluidState p_215664_1_,
IBlockReader p_215664_2_,
BlockPos p_215664_3_) |
abstract float |
getActualHeight(IFluidState p_215662_1_,
IBlockReader p_215662_2_,
BlockPos p_215662_3_) |
FluidAttributes |
getAttributes()
Retrieves the non-vanilla fluid attributes, including localized name.
|
protected abstract BlockState |
getBlockState(IFluidState state) |
IFluidState |
getDefaultState() |
protected IParticleData |
getDripParticleData() |
protected abstract float |
getExplosionResistance() |
abstract Item |
getFilledBucket() |
protected abstract Vec3d |
getFlow(IBlockReader p_215663_1_,
BlockPos p_215663_2_,
IFluidState p_215663_3_) |
abstract float |
getHeight(IFluidState p_223407_1_) |
abstract int |
getLevel(IFluidState p_207192_1_) |
StateContainer<Fluid,IFluidState> |
getStateContainer() |
java.util.Set<ResourceLocation> |
getTags()
Retrieves a list of tags names this is known to be associated with.
|
abstract int |
getTickRate(IWorldReader p_205569_1_) |
protected boolean |
isEmpty() |
boolean |
isEquivalentTo(Fluid fluidIn) |
boolean |
isIn(Tag<Fluid> tagIn) |
abstract boolean |
isSource(IFluidState state) |
protected void |
randomTick(World p_207186_1_,
BlockPos pos,
IFluidState state,
java.util.Random random) |
protected void |
setDefaultState(IFluidState state) |
protected void |
tick(World worldIn,
BlockPos pos,
IFluidState state) |
protected boolean |
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 ObjectIntIdentityMap<IFluidState> STATE_REGISTRY
protected final StateContainer<Fluid,IFluidState> stateContainer
private IFluidState defaultState
private final ReverseTagWrapper<Fluid> reverseTags
private FluidAttributes forgeFluidAttributes
protected void fillStateContainer(StateContainer.Builder<Fluid,IFluidState> builder)
public StateContainer<Fluid,IFluidState> getStateContainer()
protected final void setDefaultState(IFluidState state)
public final IFluidState getDefaultState()
public abstract Item getFilledBucket()
protected void animateTick(World worldIn, BlockPos pos, IFluidState state, java.util.Random random)
protected void tick(World worldIn, BlockPos pos, IFluidState state)
protected void randomTick(World p_207186_1_, BlockPos pos, IFluidState state, java.util.Random random)
@Nullable protected IParticleData getDripParticleData()
protected abstract boolean canDisplace(IFluidState p_215665_1_, IBlockReader p_215665_2_, BlockPos p_215665_3_, Fluid p_215665_4_, Direction p_215665_5_)
protected abstract Vec3d getFlow(IBlockReader p_215663_1_, BlockPos p_215663_2_, IFluidState p_215663_3_)
public abstract int getTickRate(IWorldReader p_205569_1_)
protected boolean ticksRandomly()
protected boolean isEmpty()
protected abstract float getExplosionResistance()
public abstract float getActualHeight(IFluidState p_215662_1_, IBlockReader p_215662_2_, BlockPos p_215662_3_)
public abstract float getHeight(IFluidState p_223407_1_)
protected abstract BlockState getBlockState(IFluidState state)
public abstract boolean isSource(IFluidState state)
public abstract int getLevel(IFluidState p_207192_1_)
public boolean isEquivalentTo(Fluid fluidIn)
public abstract VoxelShape func_215664_b(IFluidState p_215664_1_, IBlockReader p_215664_2_, BlockPos p_215664_3_)
public java.util.Set<ResourceLocation> getTags()
IForgeFluid
getTags
in interface IForgeFluid
protected FluidAttributes createAttributes()
getAttributes()
public final FluidAttributes getAttributes()
IForgeFluid
getAttributes
in interface IForgeFluid