Package net.minecraft.world.level.block
Class LiquidBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.LiquidBlock
- All Implemented Interfaces:
BucketPickup
,ItemLike
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate FlowingFluid
Deprecated.private boolean
static IntegerProperty
static com.google.common.collect.ImmutableList<Direction>
static VoxelShape
private List<FluidState>
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, RANDOM, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHT
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorDescriptionLiquidBlock(Supplier<? extends FlowingFluid> p_54694_, BlockBehaviour.Properties p_54695_)
LiquidBlock(FlowingFluid p_54694_, BlockBehaviour.Properties p_54695_)
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createBlockStateDefinition(StateDefinition.Builder<Block,BlockState> p_54730_)
private void
fizz(LevelAccessor p_54701_, BlockPos p_54702_)
getCollisionShape(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_)
getDrops(BlockState p_54720_, LootContext.Builder p_54721_)
getFluid()
getFluidState(BlockState p_54765_)
getRenderShape(BlockState p_54738_)
getShape(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_)
protected void
boolean
isPathfindable(BlockState p_54704_, BlockGetter p_54705_, BlockPos p_54706_, PathComputationType p_54707_)
boolean
isRandomlyTicking(BlockState p_54732_)
void
neighborChanged(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, BlockPos p_54713_, boolean p_54714_)
void
onPlace(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_)
pickupBlock(LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_)
boolean
propagatesSkylightDown(BlockState p_54745_, BlockGetter p_54746_, BlockPos p_54747_)
void
randomTick(BlockState p_54740_, ServerLevel p_54741_, BlockPos p_54742_, Random p_54743_)
private boolean
shouldSpreadLiquid(Level p_54697_, BlockPos p_54698_, BlockState p_54699_)
boolean
skipRendering(BlockState p_54716_, BlockState p_54717_, Direction p_54718_)
updateShape(BlockState p_54723_, Direction p_54724_, BlockState p_54725_, LevelAccessor p_54726_, BlockPos p_54727_, BlockPos p_54728_)
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isSignalSource, mirror, onProjectileHit, onRemove, rotate, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getPickBlock, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onNeighborChange, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
-
Field Details
-
LEVEL
-
fluid
Deprecated. -
stateCache
-
STABLE_SHAPE
-
POSSIBLE_FLOW_DIRECTIONS
-
supplier
-
fluidStateCacheInitialized
private boolean fluidStateCacheInitialized
-
-
Constructor Details
-
LiquidBlock
Deprecated. -
LiquidBlock
- Parameters:
p_54694_
- A fluid supplier such asRegistryObject<FlowingFluid>
-
-
Method Details
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_)- Overrides:
getCollisionShape
in classBlockBehaviour
-
isRandomlyTicking
- Overrides:
isRandomlyTicking
in classBlock
-
randomTick
public void randomTick(BlockState p_54740_, ServerLevel p_54741_, BlockPos p_54742_, Random p_54743_)- Overrides:
randomTick
in classBlockBehaviour
-
propagatesSkylightDown
public boolean propagatesSkylightDown(BlockState p_54745_, BlockGetter p_54746_, BlockPos p_54747_)- Overrides:
propagatesSkylightDown
in classBlock
-
isPathfindable
public boolean isPathfindable(BlockState p_54704_, BlockGetter p_54705_, BlockPos p_54706_, PathComputationType p_54707_)- Overrides:
isPathfindable
in classBlockBehaviour
-
getFluidState
- Overrides:
getFluidState
in classBlockBehaviour
-
skipRendering
- Overrides:
skipRendering
in classBlockBehaviour
-
getRenderShape
- Overrides:
getRenderShape
in classBlockBehaviour
-
getDrops
- Overrides:
getDrops
in classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_)- Overrides:
getShape
in classBlockBehaviour
-
onPlace
public void onPlace(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_)- Overrides:
onPlace
in classBlockBehaviour
-
updateShape
public BlockState updateShape(BlockState p_54723_, Direction p_54724_, BlockState p_54725_, LevelAccessor p_54726_, BlockPos p_54727_, BlockPos p_54728_)- Overrides:
updateShape
in classBlockBehaviour
-
neighborChanged
public void neighborChanged(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, BlockPos p_54713_, boolean p_54714_)- Overrides:
neighborChanged
in classBlockBehaviour
-
shouldSpreadLiquid
-
fizz
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
pickupBlock
- Specified by:
pickupBlock
in interfaceBucketPickup
-
getFluid
-
initFluidStateCache
protected void initFluidStateCache() -
getPickupSound
- Specified by:
getPickupSound
in interfaceBucketPickup
-