Package net.minecraft.world.level.block
Class LiquidBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.LiquidBlock
- All Implemented Interfaces:
- FeatureElement,- BucketPickup,- ItemLike,- IForgeBlock,- IForgeBucketPickup
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FlowingFluidDeprecated.private booleanstatic final IntegerPropertystatic final com.google.common.collect.ImmutableList<Direction>static final VoxelShapeprivate final List<FluidState>Fields inherited from class net.minecraft.world.level.block.BlockBLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructorsConstructorDescriptionLiquidBlock(Supplier<? extends FlowingFluid> p_54694_, BlockBehaviour.Properties p_54695_) LiquidBlock(FlowingFluid p_54694_, BlockBehaviour.Properties p_54695_) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprivate voidfizz(LevelAccessor p_54701_, BlockPos p_54702_) getCollisionShape(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_) getDrops(BlockState p_54720_, LootParams.Builder p_287727_) getFluid()getFluidState(BlockState p_54765_) getRenderShape(BlockState p_54738_) getShape(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_) protected voidbooleanisPathfindable(BlockState p_54704_, BlockGetter p_54705_, BlockPos p_54706_, PathComputationType p_54707_) booleanisRandomlyTicking(BlockState p_54732_) voidneighborChanged(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, BlockPos p_54713_, boolean p_54714_) voidonPlace(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_) pickupBlock(Player p_299124_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) booleanpropagatesSkylightDown(BlockState p_54745_, BlockGetter p_54746_, BlockPos p_54747_) voidrandomTick(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) private booleanshouldSpreadLiquid(Level p_54697_, BlockPos p_54698_, BlockState p_54699_) Deprecated.booleanskipRendering(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.BlockanimateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, mirror, onProjectileHit, onRemove, requiredFeatures, rotate, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHidingMethods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickupgetPickupSound
- 
Field Details- 
LEVEL
- 
fluidDeprecated.
- 
stateCache
- 
STABLE_SHAPE
- 
POSSIBLE_FLOW_DIRECTIONS
- 
supplier
- 
fluidStateCacheInitializedprivate boolean fluidStateCacheInitialized
 
- 
- 
Constructor Details- 
LiquidBlockDeprecated.
- 
LiquidBlock- Parameters:
- p_54694_- A fluid supplier such as- RegistryObject<FlowingFluid>
 
 
- 
- 
Method Details- 
getCollisionShapepublic VoxelShape getCollisionShape(BlockState p_54760_, BlockGetter p_54761_, BlockPos p_54762_, CollisionContext p_54763_) - Overrides:
- getCollisionShapein class- BlockBehaviour
 
- 
isRandomlyTicking- Overrides:
- isRandomlyTickingin class- Block
 
- 
randomTickpublic void randomTick(BlockState p_221410_, ServerLevel p_221411_, BlockPos p_221412_, RandomSource p_221413_) - Overrides:
- randomTickin class- BlockBehaviour
 
- 
propagatesSkylightDown- Overrides:
- propagatesSkylightDownin class- Block
 
- 
isPathfindablepublic boolean isPathfindable(BlockState p_54704_, BlockGetter p_54705_, BlockPos p_54706_, PathComputationType p_54707_) - Overrides:
- isPathfindablein class- BlockBehaviour
 
- 
getFluidState- Overrides:
- getFluidStatein class- BlockBehaviour
 
- 
skipRendering- Overrides:
- skipRenderingin class- BlockBehaviour
 
- 
getRenderShape- Overrides:
- getRenderShapein class- BlockBehaviour
 
- 
getDrops- Overrides:
- getDropsin class- BlockBehaviour
 
- 
getShapepublic VoxelShape getShape(BlockState p_54749_, BlockGetter p_54750_, BlockPos p_54751_, CollisionContext p_54752_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
onPlacepublic void onPlace(BlockState p_54754_, Level p_54755_, BlockPos p_54756_, BlockState p_54757_, boolean p_54758_) - Overrides:
- onPlacein class- BlockBehaviour
 
- 
updateShapepublic BlockState updateShape(BlockState p_54723_, Direction p_54724_, BlockState p_54725_, LevelAccessor p_54726_, BlockPos p_54727_, BlockPos p_54728_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
neighborChangedpublic void neighborChanged(BlockState p_54709_, Level p_54710_, BlockPos p_54711_, Block p_54712_, BlockPos p_54713_, boolean p_54714_) - Overrides:
- neighborChangedin class- BlockBehaviour
 
- 
shouldSpreadLiquid@Deprecated private boolean shouldSpreadLiquid(Level p_54697_, BlockPos p_54698_, BlockState p_54699_) Deprecated.
- 
fizz
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
pickupBlockpublic ItemStack pickupBlock(@Nullable Player p_299124_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) - Specified by:
- pickupBlockin interface- BucketPickup
 
- 
getFluid
- 
initFluidStateCacheprotected void initFluidStateCache()
- 
getPickupSound- Specified by:
- getPickupSoundin interface- BucketPickup
 
 
-