Package com.hrznstudio.titanium.fluid
Class TitaniumFluid
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.level.material.Fluid>
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
com.hrznstudio.titanium.fluid.TitaniumFluid
- All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeFluid,net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.material.Fluid>
- Direct Known Subclasses:
TitaniumFluid.Flowing,TitaniumFluid.Source
public class TitaniumFluid
extends net.minecraft.world.level.material.FlowingFluid
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>> -
Field Summary
Fields inherited from class net.minecraft.world.level.material.FlowingFluid
FALLING, LEVELFields inherited from class net.minecraft.world.level.material.Fluid
FLUID_STATE_REGISTRY, stateDefinitionFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionTitaniumFluid(net.minecraftforge.fluids.FluidAttributes.Builder fluidAttributes, TitaniumFluidInstance titaniumFluidInstance) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeDestroyingBlock(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected booleancanBeReplacedWith(net.minecraft.world.level.material.FluidState p_215665_1_, net.minecraft.world.level.BlockGetter p_215665_2_, net.minecraft.core.BlockPos p_215665_3_, net.minecraft.world.level.material.Fluid p_215665_4_, net.minecraft.core.Direction p_215665_5_) protected booleanprotected net.minecraftforge.fluids.FluidAttributesprotected net.minecraft.world.level.block.state.BlockStatecreateLegacyBlock(net.minecraft.world.level.material.FluidState state) intgetAmount(net.minecraft.world.level.material.FluidState p_207192_1_) net.minecraft.world.item.Itemprotected intgetDropOff(net.minecraft.world.level.LevelReader world) protected floatnet.minecraft.world.level.material.Fluidprotected intgetSlopeFindDistance(net.minecraft.world.level.LevelReader world) net.minecraft.world.level.material.FluidintgetTickDelay(net.minecraft.world.level.LevelReader p_205569_1_) booleanisSame(net.minecraft.world.level.material.Fluid fluidIn) booleanisSource(net.minecraft.world.level.material.FluidState state) Methods inherited from class net.minecraft.world.level.material.FlowingFluid
canSpreadTo, createFluidStateDefinition, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tickMethods inherited from class net.minecraft.world.level.material.Fluid
animateTick, builtInRegistryHolder, defaultFluidState, getAttributes, getDripParticle, getPickupSound, getStateDefinition, is, isEmpty, isRandomlyTicking, randomTick, registerDefaultStateMethods 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
-
Constructor Details
-
TitaniumFluid
public TitaniumFluid(net.minecraftforge.fluids.FluidAttributes.Builder fluidAttributes, TitaniumFluidInstance titaniumFluidInstance)
-
-
Method Details
-
getFlowing
@Nonnull public net.minecraft.world.level.material.Fluid getFlowing()- Specified by:
getFlowingin classnet.minecraft.world.level.material.FlowingFluid
-
getSource
@Nonnull public net.minecraft.world.level.material.Fluid getSource()- Specified by:
getSourcein classnet.minecraft.world.level.material.FlowingFluid
-
canConvertToSource
protected boolean canConvertToSource()- Specified by:
canConvertToSourcein classnet.minecraft.world.level.material.FlowingFluid
-
beforeDestroyingBlock
@ParametersAreNonnullByDefault protected void beforeDestroyingBlock(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
beforeDestroyingBlockin classnet.minecraft.world.level.material.FlowingFluid
-
getSlopeFindDistance
protected int getSlopeFindDistance(@Nonnull net.minecraft.world.level.LevelReader world) - Specified by:
getSlopeFindDistancein classnet.minecraft.world.level.material.FlowingFluid
-
getDropOff
protected int getDropOff(@Nonnull net.minecraft.world.level.LevelReader world) - Specified by:
getDropOffin classnet.minecraft.world.level.material.FlowingFluid
-
getBucket
@Nonnull public net.minecraft.world.item.Item getBucket()- Specified by:
getBucketin classnet.minecraft.world.level.material.Fluid
-
canBeReplacedWith
@ParametersAreNonnullByDefault protected boolean canBeReplacedWith(net.minecraft.world.level.material.FluidState p_215665_1_, net.minecraft.world.level.BlockGetter p_215665_2_, net.minecraft.core.BlockPos p_215665_3_, net.minecraft.world.level.material.Fluid p_215665_4_, net.minecraft.core.Direction p_215665_5_) - Specified by:
canBeReplacedWithin classnet.minecraft.world.level.material.Fluid
-
getTickDelay
public int getTickDelay(@Nonnull net.minecraft.world.level.LevelReader p_205569_1_) - Specified by:
getTickDelayin classnet.minecraft.world.level.material.Fluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classnet.minecraft.world.level.material.Fluid
-
createLegacyBlock
@Nonnull protected net.minecraft.world.level.block.state.BlockState createLegacyBlock(@Nonnull net.minecraft.world.level.material.FluidState state) - Specified by:
createLegacyBlockin classnet.minecraft.world.level.material.Fluid
-
isSource
public boolean isSource(@Nonnull net.minecraft.world.level.material.FluidState state) - Specified by:
isSourcein classnet.minecraft.world.level.material.Fluid
-
getAmount
public int getAmount(@Nonnull net.minecraft.world.level.material.FluidState p_207192_1_) - Specified by:
getAmountin classnet.minecraft.world.level.material.FlowingFluid
-
isSame
public boolean isSame(net.minecraft.world.level.material.Fluid fluidIn) - Overrides:
isSamein classnet.minecraft.world.level.material.Fluid
-
createAttributes
@Nonnull protected net.minecraftforge.fluids.FluidAttributes createAttributes()- Overrides:
createAttributesin classnet.minecraft.world.level.material.Fluid
-