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 Block
Block.UpdateFlagsNested classes/interfaces inherited from class 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 VoxelShape[]private static final doublestatic final IntegerPropertystatic final intstatic final intprivate final Biome.PrecipitationFields inherited from class AbstractCauldronBlock
FLOOR_LEVEL, interactions, SHAPEFields inherited from class 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_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionLayeredCauldronBlock(Biome.Precipitation precipitationType, CauldronInteraction.InteractionMap interactionMap, 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, InsideBlockEffectApplier effectApplier, boolean isPrecise) protected intgetAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) protected doublegetContentHeight(BlockState state) protected VoxelShapegetEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) private static doublegetPixelContentHeight(int level) 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 AbstractCauldronBlock
affectNeighborsAfterRemoval, getInteractionShape, getShape, hasAnalogOutputSignal, isPathfindable, onPlace, tick, useItemOnMethods inherited from class Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion, useWithoutItemMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FeatureElement
isEnabledMethods inherited from interface 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, ignitedByLava, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, 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:
-
FILLED_SHAPES
-
precipitationType
-
-
Constructor Details
-
LayeredCauldronBlock
public LayeredCauldronBlock(Biome.Precipitation precipitationType, CauldronInteraction.InteractionMap interactionMap, BlockBehaviour.Properties properties)
-
-
Method Details
-
codec
- Specified by:
codecin classAbstractCauldronBlock
-
isFull
- Specified by:
isFullin classAbstractCauldronBlock
-
canReceiveStalactiteDrip
- Overrides:
canReceiveStalactiteDripin classAbstractCauldronBlock
-
getContentHeight
- Overrides:
getContentHeightin classAbstractCauldronBlock
-
getPixelContentHeight
private static double getPixelContentHeight(int level) -
getEntityInsideCollisionShape
protected VoxelShape getEntityInsideCollisionShape(BlockState state, BlockGetter level, BlockPos pos, Entity entity) - Overrides:
getEntityInsideCollisionShapein classBlockBehaviour
-
entityInside
protected void entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise) - Overrides:
entityInsidein classBlockBehaviour
-
handleEntityOnFireInside
-
lowerFillLevel
-
handlePrecipitation
public void handlePrecipitation(BlockState state, Level level, BlockPos pos, Biome.Precipitation precipitation) - Overrides:
handlePrecipitationin classBlock
-
getAnalogOutputSignal
protected int getAnalogOutputSignal(BlockState state, Level level, BlockPos pos, Direction direction) - Overrides:
getAnalogOutputSignalin classBlockBehaviour
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
receiveStalactiteDrip
- Overrides:
receiveStalactiteDripin classAbstractCauldronBlock
-