Package org.moddingx.libx.base
Class FluidBase
java.lang.Object
org.moddingx.libx.base.FluidBase
- All Implemented Interfaces:
net.minecraft.world.level.ItemLike
,Registerable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.moddingx.libx.registration.Registerable
Registerable.EntryCollector, Registerable.TrackingCollector
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Item
asItem()
Same asgetBucket()
static FluidBase.Builder
net.minecraft.world.level.block.LiquidBlock
getBlock()
Gets the fluid block for this fluid.net.minecraft.world.item.BucketItem
Gets the bucket item for this fluid.net.minecraftforge.fluids.ForgeFlowingFluid.Flowing
Gets the flowing fluid.net.minecraft.world.level.material.Fluid
getFluid()
Gets the fluid.net.minecraftforge.fluids.ForgeFlowingFluid.Properties
Gets the properties for this fluid.net.minecraftforge.fluids.ForgeFlowingFluid.Source
Gets the source fluid.net.minecraftforge.fluids.FluidType
getType()
Gets the fluid type.void
initTracking
(RegistrationContext ctx, Registerable.TrackingCollector builder) Adds fields with additional registry values to theRegistryTracker
.void
registerAdditional
(RegistrationContext ctx, Registerable.EntryCollector builder) Registers additional objects.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moddingx.libx.registration.Registerable
registerClient, registerCommon
-
Field Details
-
mod
-
-
Method Details
-
getFluid
Gets the fluid. This should be used in recipes orfluid handlers
.- See Also:
-
getSource
Gets the source fluid. In most cases you should usegetFluid()
.- See Also:
-
getType
Gets the fluid type. -
getFlowing
Gets the flowing fluid.- See Also:
-
getBlock
Gets the fluid block for this fluid. -
getBucket
Gets the bucket item for this fluid. -
getProperties
Gets the properties for this fluid. -
asItem
Same asgetBucket()
- Specified by:
asItem
in interfacenet.minecraft.world.level.ItemLike
-
registerAdditional
@OverridingMethodsMustInvokeSuper public void registerAdditional(RegistrationContext ctx, Registerable.EntryCollector builder) Description copied from interface:Registerable
Registers additional objects. Those may beRegisterable
as well. These objects will be registered with the id of this object and optionally a name suffix.- Specified by:
registerAdditional
in interfaceRegisterable
-
initTracking
@OverridingMethodsMustInvokeSuper public void initTracking(RegistrationContext ctx, Registerable.TrackingCollector builder) throws ReflectiveOperationException Description copied from interface:Registerable
Adds fields with additional registry values to theRegistryTracker
. This called, unlessRegistrationBuilder.disableRegistryTracking()
()} is set.- Specified by:
initTracking
in interfaceRegisterable
- Throws:
ReflectiveOperationException
-
builder
-