Package hiiragi283.core.api.fluid
Class HTVirtualFluid
-
- All Implemented Interfaces:
-
net.neoforged.neoforge.common.extensions.IFluidExtension
public final class HTVirtualFluid extends Fluid設置不可能な液体を表すFluidの拡張クラスです。
- Since:
0.9.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private final StateDefinition<Fluid, FluidState>stateDefinitionprivate final FluidTypefluidTypeprivate final Optional<SoundEvent>pickupSoundprivate final Itembucket
-
Constructor Summary
Constructors Constructor Description HTVirtualFluid(Supplier<FluidType> typeGetter, Supplier<Item> bucketGetter)
-
Method Summary
Modifier and Type Method Description ItemgetBucket()IntegergetTickDelay(LevelReader level)FloatgetHeight(FluidState state, BlockGetter level, BlockPos pos)FloatgetOwnHeight(FluidState state)BooleanisSource(FluidState state)IntegergetAmount(FluidState state)BooleanisSame(Fluid fluid)VoxelShapegetShape(FluidState state, BlockGetter level, BlockPos pos)FluidTypegetFluidType()Optional<SoundEvent>getPickupSound()-
Methods inherited from class net.minecraft.world.level.material.Fluid
builtInRegistryHolder, defaultFluidState, getStateDefinition, is -
Methods inherited from class hiiragi283.core.api.fluid.HTVirtualFluid
getBucket, getFluidType, getPickupSound -
Methods inherited from class net.neoforged.neoforge.common.extensions.IFluidExtension
canConvertToSource, canExtinguish, canHydrate, getAdjacentBlockPathType, getBlockPathType, getExplosionResistance, move, supportsBoating -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBucket
Item getBucket()
-
getTickDelay
Integer getTickDelay(LevelReader level)
-
getOwnHeight
Float getOwnHeight(FluidState state)
-
getShape
VoxelShape getShape(FluidState state, BlockGetter level, BlockPos pos)
-
getFluidType
FluidType getFluidType()
-
getPickupSound
Optional<SoundEvent> getPickupSound()
-
-
-
-