Class Fluid
- All Implemented Interfaces:
IForgeFluid,IForgeRegistryEntry<Fluid>
- Direct Known Subclasses:
EmptyFluid,FlowingFluid
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Holder.Reference<Fluid>private FluidStatestatic final IdMapper<FluidState>private FluidAttributesprotected final StateDefinition<Fluid,FluidState> Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimateTick(Level p_76116_, BlockPos p_76117_, FluidState p_76118_, Random p_76119_) Deprecated.protected abstract booleancanBeReplacedWith(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) protected FluidAttributesCreates the fluid attributes object, which wilAl contain all the extended values for the fluid that aren't part of the vanilla system.protected voidprotected abstract BlockStatecreateLegacyBlock(FluidState p_76136_) final FluidStateabstract intgetAmount(FluidState p_76141_) final FluidAttributesRetrieves the non-vanilla fluid attributes, including localized name.abstract Itemprotected ParticleOptionsprotected abstract floatprotected abstract Vec3getFlow(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) abstract floatgetHeight(FluidState p_76124_, BlockGetter p_76125_, BlockPos p_76126_) abstract floatgetOwnHeight(FluidState p_76123_) abstract VoxelShapegetShape(FluidState p_76137_, BlockGetter p_76138_, BlockPos p_76139_) abstract intgetTickDelay(LevelReader p_76120_) booleanDeprecated.protected booleanisEmpty()protected booleanbooleanabstract booleanisSource(FluidState p_76140_) protected voidrandomTick(Level p_76132_, BlockPos p_76133_, FluidState p_76134_, Random p_76135_) protected final voidregisterDefaultState(FluidState p_76143_) protected voidtick(Level p_76113_, BlockPos p_76114_, FluidState p_76115_) Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeFluid
getExplosionResistance, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
-
Field Details
-
FLUID_STATE_REGISTRY
-
stateDefinition
-
defaultFluidState
-
builtInRegistryHolder
-
forgeFluidAttributes
-
-
Constructor Details
-
Fluid
protected Fluid()
-
-
Method Details
-
createFluidStateDefinition
-
getStateDefinition
-
registerDefaultState
-
defaultFluidState
-
getBucket
-
animateTick
-
tick
-
randomTick
-
getDripParticle
-
canBeReplacedWith
protected abstract boolean canBeReplacedWith(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) -
getFlow
-
getTickDelay
-
isRandomlyTicking
protected boolean isRandomlyTicking() -
isEmpty
protected boolean isEmpty() -
getExplosionResistance
protected abstract float getExplosionResistance() -
getHeight
-
getOwnHeight
-
createLegacyBlock
-
isSource
-
getAmount
-
isSame
-
is
Deprecated. -
getShape
-
createAttributes
Creates the fluid attributes object, which wilAl contain all the extended values for the fluid that aren't part of the vanilla system. Do not call this from outside. To retrieve the values usegetAttributes() -
getAttributes
Description copied from interface:IForgeFluidRetrieves the non-vanilla fluid attributes, including localized name.- Specified by:
getAttributesin interfaceIForgeFluid
-
getPickupSound
-
builtInRegistryHolder
Deprecated.
-