Class BotariumSourceFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
earth.terrarium.botarium.common.registry.fluid.BotariumSourceFluid
- All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeFluid
public class BotariumSourceFluid
extends net.minecraft.world.level.material.FlowingFluid
-
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(@NotNull net.minecraft.world.level.LevelAccessor level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state) protected booleancanBeReplacedWith(@NotNull net.minecraft.world.level.material.FluidState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.material.Fluid fluid, @NotNull net.minecraft.core.Direction direction) protected booleancanConvertToSource(net.minecraft.world.level.Level level) protected voidcreateFluidStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.material.Fluid, net.minecraft.world.level.material.FluidState> builder) protected net.minecraft.world.level.block.state.BlockStatecreateLegacyBlock(@NotNull net.minecraft.world.level.material.FluidState state) intgetAmount(@NotNull net.minecraft.world.level.material.FluidState state) net.minecraft.world.item.ItemgetData()protected intgetDropOff(@NotNull net.minecraft.world.level.LevelReader level) protected floatnet.minecraft.world.level.material.FluidOptional<net.minecraft.sounds.SoundEvent>protected intgetSlopeFindDistance(@NotNull net.minecraft.world.level.LevelReader level) net.minecraft.world.level.material.FluidintgetTickDelay(@NotNull net.minecraft.world.level.LevelReader level) booleanisSame(@NotNull net.minecraft.world.level.material.Fluid fluid) booleanisSource(@NotNull net.minecraft.world.level.material.FluidState state) Methods inherited from class net.minecraft.world.level.material.FlowingFluid
canConvertToSource, canSpreadTo, 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, getFluidType, 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, shouldUpdateWhileBoating, supportsBoating
-
Constructor Details
-
BotariumSourceFluid
-
-
Method Details
-
getData
-
getFlowing
public net.minecraft.world.level.material.Fluid getFlowing()- Specified by:
getFlowingin classnet.minecraft.world.level.material.FlowingFluid
-
getSource
public net.minecraft.world.level.material.Fluid getSource()- Specified by:
getSourcein classnet.minecraft.world.level.material.FlowingFluid
-
canConvertToSource
protected boolean canConvertToSource(net.minecraft.world.level.Level level) - Specified by:
canConvertToSourcein classnet.minecraft.world.level.material.FlowingFluid
-
beforeDestroyingBlock
protected void beforeDestroyingBlock(@NotNull @NotNull net.minecraft.world.level.LevelAccessor level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) - Specified by:
beforeDestroyingBlockin classnet.minecraft.world.level.material.FlowingFluid
-
getSlopeFindDistance
protected int getSlopeFindDistance(@NotNull @NotNull net.minecraft.world.level.LevelReader level) - Specified by:
getSlopeFindDistancein classnet.minecraft.world.level.material.FlowingFluid
-
getDropOff
protected int getDropOff(@NotNull @NotNull net.minecraft.world.level.LevelReader level) - Specified by:
getDropOffin classnet.minecraft.world.level.material.FlowingFluid
-
getBucket
public net.minecraft.world.item.Item getBucket()- Specified by:
getBucketin classnet.minecraft.world.level.material.Fluid
-
canBeReplacedWith
protected boolean canBeReplacedWith(@NotNull @NotNull net.minecraft.world.level.material.FluidState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.material.Fluid fluid, @NotNull @NotNull net.minecraft.core.Direction direction) - Specified by:
canBeReplacedWithin classnet.minecraft.world.level.material.Fluid
-
getTickDelay
public int getTickDelay(@NotNull @NotNull net.minecraft.world.level.LevelReader level) - Specified by:
getTickDelayin classnet.minecraft.world.level.material.Fluid
-
getExplosionResistance
protected float getExplosionResistance()- Specified by:
getExplosionResistancein classnet.minecraft.world.level.material.Fluid
-
createLegacyBlock
protected net.minecraft.world.level.block.state.BlockState createLegacyBlock(@NotNull @NotNull net.minecraft.world.level.material.FluidState state) - Specified by:
createLegacyBlockin classnet.minecraft.world.level.material.Fluid
-
isSource
public boolean isSource(@NotNull @NotNull net.minecraft.world.level.material.FluidState state) - Specified by:
isSourcein classnet.minecraft.world.level.material.Fluid
-
createFluidStateDefinition
protected void createFluidStateDefinition(@NotNull net.minecraft.world.level.block.state.StateDefinition.Builder<net.minecraft.world.level.material.Fluid, net.minecraft.world.level.material.FluidState> builder) - Overrides:
createFluidStateDefinitionin classnet.minecraft.world.level.material.FlowingFluid
-
getAmount
public int getAmount(@NotNull @NotNull net.minecraft.world.level.material.FluidState state) - Specified by:
getAmountin classnet.minecraft.world.level.material.FlowingFluid
-
isSame
public boolean isSame(@NotNull @NotNull net.minecraft.world.level.material.Fluid fluid) - Overrides:
isSamein classnet.minecraft.world.level.material.Fluid
-
getPickupSound
- Overrides:
getPickupSoundin classnet.minecraft.world.level.material.Fluid
-