Package com.lightning.northstar.fluid
Class GasFluid
java.lang.Object
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.neoforged.neoforge.fluids.BaseFlowingFluid
com.lightning.northstar.fluid.GasFluid
- All Implemented Interfaces:
net.neoforged.neoforge.common.extensions.IFluidExtension
@ParametersAreNonnullByDefault
public class GasFluid
extends net.neoforged.neoforge.fluids.BaseFlowingFluid
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.fluids.BaseFlowingFluid
net.neoforged.neoforge.fluids.BaseFlowingFluid.Flowing, net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties, net.neoforged.neoforge.fluids.BaseFlowingFluid.Source -
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
ConstructorsConstructorDescriptionGasFluid(net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties properties, boolean source) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.block.state.BlockStatecreateLegacyBlock(net.minecraft.world.level.material.FluidState state) intgetAmount(net.minecraft.world.level.material.FluidState state) booleanisSource(net.minecraft.world.level.material.FluidState state) Methods inherited from class net.neoforged.neoforge.fluids.BaseFlowingFluid
beforeDestroyingBlock, canBeReplacedWith, canConvertToSource, canConvertToSource, getBucket, getDropOff, getExplosionResistance, getFlowing, getFluidType, getPickupSound, getSlopeFindDistance, getSource, getTickDelay, isSameMethods 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, getStateDefinition, is, isEmpty, isRandomlyTicking, randomTick, registerDefaultState, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IFluidExtension
canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating
-
Constructor Details
-
GasFluid
public GasFluid(net.neoforged.neoforge.fluids.BaseFlowingFluid.Properties properties, boolean source)
-
-
Method Details
-
createLegacyBlock
protected net.minecraft.world.level.block.state.BlockState createLegacyBlock(net.minecraft.world.level.material.FluidState state) - Overrides:
createLegacyBlockin classnet.neoforged.neoforge.fluids.BaseFlowingFluid
-
isSource
public boolean isSource(net.minecraft.world.level.material.FluidState state) - Specified by:
isSourcein classnet.minecraft.world.level.material.Fluid
-
getAmount
public int getAmount(net.minecraft.world.level.material.FluidState state) - Specified by:
getAmountin classnet.minecraft.world.level.material.FlowingFluid
-