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 FluidStatestatic IdMapper<FluidState>private FluidAttributesprivate ReverseTagWrapper<Fluid>protected 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_)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 will contain all the extended values for the fluid that aren't part of the vanilla system.protected voidcreateFluidStateDefinition(StateDefinition.Builder<Fluid,FluidState> p_76121_)protected abstract BlockStatecreateLegacyBlock(FluidState p_76136_)abstract intgetAmount(FluidState p_76141_)Retrieves 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_)getTags()Retrieves a list of tags names this is known to be associated with.abstract intgetTickDelay(LevelReader p_76120_)booleanprotected booleanisEmpty()protected booleanbooleanabstract booleanisSource(FluidState p_76140_)protected voidrandomTick(Level p_76132_, BlockPos p_76133_, FluidState p_76134_, Random p_76135_)protected 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
-
reverseTags
-
forgeFluidAttributes
-
-
Constructor Details
-
Fluid
protected Fluid()
-
-
Method Details
-
createFluidStateDefinition
-
getStateDefinition
-
registerDefaultState
-
defaultFluidState
-
getBucket
-
animateTick
protected void animateTick(Level p_76116_, BlockPos p_76117_, FluidState p_76118_, Random p_76119_) -
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
-
getShape
-
getTags
Description copied from interface:IForgeFluidRetrieves a list of tags names this is known to be associated with. This should be used in favor of TagCollection.getOwningTags, as this caches the result and automatically updates when the TagCollection changes.- Specified by:
getTagsin interfaceIForgeFluid
-
createAttributes
Creates the fluid attributes object, which will 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
-