net.minecraft.fluid

public abstract class Fluid

net.minecraft.world.level.material.Fluid
net.minecraft.class_3611
net.minecraft.fluid.Fluid

Field summary

Modifier and TypeField
public static final IdList<FluidState>
FLUID_STATE_REGISTRY
field_15904
STATE_IDS
protected final StateManager<Fluid, FluidState>
stateDefinition
field_15905
stateManager
private FluidState
defaultFluidState
field_15903
defaultState
private final RegistryEntry$Reference<Fluid>
builtInRegistryHolder
field_36431
registryEntry

Constructor summary

ModifierConstructor
protected ()

Method summary

Modifier and TypeMethod
protected void
createFluidStateDefinition(StateDefinition$Builder<Fluid, FluidState> builder)
method_15775(class_2689$class_2690<class_3611, class_3610> arg0)
appendProperties(StateManager$Builder<Fluid, FluidState> builder)
public StateManager<Fluid, FluidState>
getStateDefinition()
method_15783()
getStateManager()
protected final void
registerDefaultState(FluidState state)
method_15781(class_3610 arg0)
setDefaultState(FluidState state)
public final FluidState
defaultFluidState()
method_15785()
getDefaultState()
public abstract Item
getBucket()
method_15774()
getBucketItem()
protected void
animateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random)
method_15776(class_1937 arg0, class_2338 arg1, class_3610 arg2, class_5819 arg3)
randomDisplayTick(World world, BlockPos pos, FluidState state, Random random)
protected void
tick(ServerLevel level, BlockPos pos, BlockState blockState, FluidState fluidState)
method_15778(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_3610 arg3)
onScheduledTick(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState)
protected void
randomTick(ServerLevel level, BlockPos pos, FluidState fluidState, RandomSource random)
method_15792(class_3218 arg0, class_2338 arg1, class_3610 arg2, class_5819 arg3)
onRandomTick(ServerWorld world, BlockPos pos, FluidState state, Random random)
protected void
entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier)
method_67694(class_1937 arg0, class_2338 arg1, class_1297 arg2, class_10774 arg3)
onEntityCollision(World world, BlockPos pos, Entity entity, EntityCollisionHandler handler)
protected ParticleEffect
getDripParticle()
method_15787()
getParticle()
protected abstract boolean
canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction)
method_15777(class_3610 arg0, class_1922 arg1, class_2338 arg2, class_3611 arg3, class_2350 arg4)
canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
protected abstract Vec3d
getFlow(BlockGetter level, BlockPos pos, FluidState fluidState)
method_15782(class_1922 arg0, class_2338 arg1, class_3610 arg2)
getVelocity(BlockView world, BlockPos pos, FluidState state)
public abstract int
getTickDelay(LevelReader level)
method_15789(class_4538 arg0)
getTickRate(WorldView world)
protected boolean
isRandomlyTicking()
method_15795()
hasRandomTicks()
protected boolean
isEmpty()
method_15794()
isEmpty()
protected abstract float
getExplosionResistance()
method_15784()
getBlastResistance()
public abstract float
getHeight(FluidState fluidState, BlockGetter level, BlockPos pos)
method_15788(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getHeight(FluidState state, BlockView world, BlockPos pos)
public abstract float
getOwnHeight(FluidState fluidState)
method_20784(class_3610 arg0)
getHeight(FluidState state)
protected abstract BlockState
createLegacyBlock(FluidState fluidState)
method_15790(class_3610 arg0)
toBlockState(FluidState state)
public abstract boolean
isSource(FluidState fluidState)
method_15793(class_3610 arg0)
isStill(FluidState state)
public abstract int
getAmount(FluidState fluidState)
method_15779(class_3610 arg0)
getLevel(FluidState state)
public boolean
isSame(Fluid other)
method_15780(class_3611 arg0)
matchesType(Fluid fluid)
public boolean
is(TagKey<Fluid> tag)
method_15791(class_6862<class_3611> arg0)
isIn(TagKey<Fluid> tag)
public abstract VoxelShape
getShape(FluidState state, BlockGetter level, BlockPos pos)
method_17775(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getShape(FluidState state, BlockView world, BlockPos pos)
public Box
getAABB(FluidState state, BlockGetter level, BlockPos pos)
method_66788(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getCollisionBox(FluidState state, BlockView world, BlockPos pos)
public Optional<SoundEvent>
getPickupSound()
method_32359()
getBucketFillSound()
public RegistryEntry$Reference<Fluid>
builtInRegistryHolder()
method_40178()
getRegistryEntry()