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.BlockStatePairKeyNested 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 intstatic final com.mojang.serialization.MapCodec<LayeredCauldronBlock> private static final doublestatic final IntegerPropertystatic final intstatic final intprivate final Biome.PrecipitationFields inherited from class net.minecraft.world.level.block.AbstractCauldronBlock
FLOOR_LEVEL, interactions, SHAPEFields 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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionLayeredCauldronBlock(Biome.Precipitation precipitationType, CauldronInteraction.InteractionMap interactions, BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanReceiveStalactiteDrip(Fluid fluid) com.mojang.serialization.MapCodec<LayeredCauldronBlock> codec()protected voidprotected voidentityInside(BlockState state, Level level, BlockPos pos, Entity entity) protected intgetAnalogOutputSignal(BlockState state, Level level, BlockPos pos) Returns the analog signal this block emits.protected doublegetContentHeight(BlockState state) private voidhandleEntityOnFireInside(BlockState state, Level level, BlockPos pos) voidhandlePrecipitation(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) booleanisFull(BlockState state) static voidlowerFillLevel(BlockState state, Level level, BlockPos pos) protected voidreceiveStalactiteDrip(BlockState state, Level level, BlockPos pos, Fluid fluid) Methods inherited from class net.minecraft.world.level.block.AbstractCauldronBlock
getInteractionShape, getShape, hasAnalogOutputSignal, isEntityInsideContent, isPathfindable, onPlace, onRemove, tick, useItemOnMethods 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, withPropertiesOfMethods 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, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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 precipitationType, CauldronInteraction.InteractionMap interactions, BlockBehaviour.Properties properties)
-
-
Method Details
-
codec
- Specified by:
codecin classAbstractCauldronBlock
-
isFull
- Specified by:
isFullin classAbstractCauldronBlock
-
canReceiveStalactiteDrip
- Overrides:
canReceiveStalactiteDripin classAbstractCauldronBlock
-
getContentHeight
- Overrides:
getContentHeightin classAbstractCauldronBlock
-
entityInside
- Overrides:
entityInsidein classBlockBehaviour
-
handleEntityOnFireInside
-
lowerFillLevel
-
handlePrecipitation
public void handlePrecipitation(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) - Overrides:
handlePrecipitationin classBlock
-
getAnalogOutputSignal
Returns the analog signal this block emits. This is the signal a comparator can read from it.- Overrides:
getAnalogOutputSignalin classBlockBehaviour
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
receiveStalactiteDrip
- Overrides:
receiveStalactiteDripin classAbstractCauldronBlock
-