Package net.minecraft.world.level.block
Class LayeredCauldronBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.AbstractCauldronBlock
net.minecraft.world.level.block.LayeredCauldronBlock
- All Implemented Interfaces:
FeatureElement
,ItemLike
,IBlockExtension
-
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.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
static final com.mojang.serialization.MapCodec
<LayeredCauldronBlock> private static final double
static final IntegerProperty
static final int
static final int
private final Biome.Precipitation
Fields inherited from class net.minecraft.world.level.block.AbstractCauldronBlock
FLOOR_LEVEL, interactions, SHAPE
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_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_DROPS
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
ConstructorsConstructorDescriptionLayeredCauldronBlock
(Biome.Precipitation p_304591_, CauldronInteraction.InteractionMap p_304761_, BlockBehaviour.Properties p_153522_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canReceiveStalactiteDrip
(Fluid pFluid) com.mojang.serialization.MapCodec
<LayeredCauldronBlock> codec()
protected void
protected void
entityInside
(BlockState pState, Level pLevel, BlockPos pPos, Entity pEntity) protected int
getAnalogOutputSignal
(BlockState pState, Level pLevel, BlockPos pPos) Returns the analog signal this block emits.protected double
getContentHeight
(BlockState pState) private void
handleEntityOnFireInside
(BlockState pState, Level pLevel, BlockPos pPos) void
handlePrecipitation
(BlockState pState, Level pLevel, BlockPos pPos, Biome.Precipitation pPrecipitation) boolean
isFull
(BlockState pState) static void
lowerFillLevel
(BlockState pState, Level pLevel, BlockPos pPos) protected void
receiveStalactiteDrip
(BlockState pState, Level pLevel, BlockPos pPos, Fluid pFluid) Methods inherited from class net.minecraft.world.level.block.AbstractCauldronBlock
getInteractionShape, getShape, hasAnalogOutputSignal, isEntityInsideContent, isPathfindable, onPlace, onRemove, tick, useItemOn
Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, 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, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion, useWithoutItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
Field Details
-
CODEC
-
MIN_FILL_LEVEL
public static final int MIN_FILL_LEVEL- See Also:
-
MAX_FILL_LEVEL
public static final int MAX_FILL_LEVEL- See Also:
-
LEVEL
-
BASE_CONTENT_HEIGHT
private static final int BASE_CONTENT_HEIGHT- See Also:
-
HEIGHT_PER_LEVEL
private static final double HEIGHT_PER_LEVEL- See Also:
-
precipitationType
-
-
Constructor Details
-
LayeredCauldronBlock
public LayeredCauldronBlock(Biome.Precipitation p_304591_, CauldronInteraction.InteractionMap p_304761_, BlockBehaviour.Properties p_153522_)
-
-
Method Details
-
codec
- Specified by:
codec
in classAbstractCauldronBlock
-
isFull
- Specified by:
isFull
in classAbstractCauldronBlock
-
canReceiveStalactiteDrip
- Overrides:
canReceiveStalactiteDrip
in classAbstractCauldronBlock
-
getContentHeight
- Overrides:
getContentHeight
in classAbstractCauldronBlock
-
entityInside
- Overrides:
entityInside
in classBlockBehaviour
-
handleEntityOnFireInside
-
lowerFillLevel
-
handlePrecipitation
public void handlePrecipitation(BlockState pState, Level pLevel, BlockPos pPos, Biome.Precipitation pPrecipitation) - Overrides:
handlePrecipitation
in classBlock
-
getAnalogOutputSignal
Returns the analog signal this block emits. This is the signal a comparator can read from it.- Overrides:
getAnalogOutputSignal
in classBlockBehaviour
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
receiveStalactiteDrip
- Overrides:
receiveStalactiteDrip
in classAbstractCauldronBlock
-