Package com.hrznstudio.titanium.fluid
Class TitaniumFluid
java.lang.Object
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
- 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 class -
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, stateDefinition -
Constructor Summary
Constructors -
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 booleancanConvertToSource(net.minecraft.world.level.Level p_256009_) booleancanConvertToSource(net.minecraft.world.level.material.FluidState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) protected 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.Fluidnet.minecraftforge.fluids.FluidTypeprotected 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, getDripParticle, getPickupSound, getStateDefinition, is, isEmpty, isRandomlyTicking, randomTick, registerDefaultStateMethods 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
canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Constructor Details
-
TitaniumFluid
-
-
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
public boolean canConvertToSource(net.minecraft.world.level.material.FluidState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Specified by:
canConvertToSourcein interfacenet.minecraftforge.common.extensions.IForgeFluid- Overrides:
canConvertToSourcein classnet.minecraft.world.level.material.FlowingFluid
-
canConvertToSource
protected boolean canConvertToSource(net.minecraft.world.level.Level p_256009_) - 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
-
getFluidType
public net.minecraftforge.fluids.FluidType getFluidType()- Specified by:
getFluidTypein interfacenet.minecraftforge.common.extensions.IForgeFluid- Overrides:
getFluidTypein classnet.minecraft.world.level.material.Fluid
-