Package net.minecraft.block
Class LeveledCauldronBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractCauldronBlock
net.minecraft.block.LeveledCauldronBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Direct Known Subclasses:
- PowderSnowCauldronBlock
A cauldron with a varying level of contents.
 This includes water and powder snow cauldrons.
 
The amount of stored substance is controlled with the LEVEL
 block state property which can take values between 1 and
 3 (inclusive).
- Mappings:
- Namespace - Name - official - ctt- intermediary - net/minecraft/class_5556- named - net/minecraft/block/LeveledCauldronBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final doublestatic final IntPropertystatic final intstatic final intprivate final Predicate<Biome.Precipitation>static final Predicate<Biome.Precipitation>A precipitation predicate that allowsBiome.Precipitation.RAIN.static final Predicate<Biome.Precipitation>A precipitation predicate that allowsBiome.Precipitation.SNOW.Fields inherited from class net.minecraft.block.AbstractCauldronBlockfield_30988, OUTLINE_SHAPEFields inherited from class net.minecraft.block.Blockfield_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructorsConstructorDescriptionLeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item, CauldronBehavior> behaviorMap) Constructs a leveled cauldron block.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.protected booleancanBeFilledByDripstone(Fluid fluid) Checks if this cauldron block can be filled with the specified fluid by dripstone.static voiddecrementFluidLevel(BlockState state, World world, BlockPos pos) protected voidfillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid) Fills a cauldron with one level of the specified fluid if possible.intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.protected doublegetFluidHeight(BlockState state) booleanisFull(BlockState state) Returnstrueif the specified cauldron state is completely full,falseotherwise.voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.protected voidonFireCollision(BlockState state, World world, BlockPos pos) voidprecipitationTick(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation) Called randomly server-side on blocks with unobstructed sky access when it is raining or snowing.Methods inherited from class net.minecraft.block.AbstractCauldronBlockcanPathfindThrough, getOutlineShape, getRaycastShape, hasComparatorOutput, isEntityTouchingFluid, onUse, scheduledTickMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
MIN_LEVELpublic static final int MIN_LEVEL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lctt;c:I- intermediary - field_31107- Lnet/minecraft/class_5556;field_31107:I- named - MIN_LEVEL- Lnet/minecraft/block/LeveledCauldronBlock;MIN_LEVEL:I
 
- 
MAX_LEVELpublic static final int MAX_LEVEL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lctt;d:I- intermediary - field_31108- Lnet/minecraft/class_5556;field_31108:I- named - MAX_LEVEL- Lnet/minecraft/block/LeveledCauldronBlock;MAX_LEVEL:I
 
- 
LEVEL- Mappings:
- Namespace - Name - Mixin selector - official - e- Lctt;e:Lddb;- intermediary - field_27206- Lnet/minecraft/class_5556;field_27206:Lnet/minecraft/class_2758;- named - LEVEL- Lnet/minecraft/block/LeveledCauldronBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
 
- 
BASE_FLUID_HEIGHTprivate static final int BASE_FLUID_HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lctt;h:I- intermediary - field_31109- Lnet/minecraft/class_5556;field_31109:I- named - BASE_FLUID_HEIGHT- Lnet/minecraft/block/LeveledCauldronBlock;BASE_FLUID_HEIGHT:I
 
- 
FLUID_HEIGHT_PER_LEVELprivate static final double FLUID_HEIGHT_PER_LEVEL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lctt;i:D- intermediary - field_31110- Lnet/minecraft/class_5556;field_31110:D- named - FLUID_HEIGHT_PER_LEVEL- Lnet/minecraft/block/LeveledCauldronBlock;FLUID_HEIGHT_PER_LEVEL:D
 
- 
RAIN_PREDICATEA precipitation predicate that allowsBiome.Precipitation.RAIN.- Mappings:
- Namespace - Name - Mixin selector - official - f- Lctt;f:Ljava/util/function/Predicate;- intermediary - field_27880- Lnet/minecraft/class_5556;field_27880:Ljava/util/function/Predicate;- named - RAIN_PREDICATE- Lnet/minecraft/block/LeveledCauldronBlock;RAIN_PREDICATE:Ljava/util/function/Predicate;
 
- 
SNOW_PREDICATEA precipitation predicate that allowsBiome.Precipitation.SNOW.- Mappings:
- Namespace - Name - Mixin selector - official - g- Lctt;g:Ljava/util/function/Predicate;- intermediary - field_27881- Lnet/minecraft/class_5556;field_27881:Ljava/util/function/Predicate;- named - SNOW_PREDICATE- Lnet/minecraft/block/LeveledCauldronBlock;SNOW_PREDICATE:Ljava/util/function/Predicate;
 
- 
precipitationPredicate- Mappings:
- Namespace - Name - Mixin selector - official - j- Lctt;j:Ljava/util/function/Predicate;- intermediary - field_27882- Lnet/minecraft/class_5556;field_27882:Ljava/util/function/Predicate;- named - precipitationPredicate- Lnet/minecraft/block/LeveledCauldronBlock;precipitationPredicate:Ljava/util/function/Predicate;
 
 
- 
- 
Constructor Details- 
LeveledCauldronBlockpublic LeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item, CauldronBehavior> behaviorMap) Constructs a leveled cauldron block.- Parameters:
- precipitationPredicate- a predicate that checks what type of precipitation can fill this cauldron
- behaviorMap- the map containing cauldron behaviors for each item
- API Note:
- The precipitation predicates are compared using identity comparisons in some cases,
 so callers should typically use RAIN_PREDICATEandSNOW_PREDICATEif applicable.
- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lctt;<init>(Ldca$d;Ljava/util/function/Predicate;Ljava/util/Map;)V- intermediary - <init>- Lnet/minecraft/class_5556;<init>(Lnet/minecraft/class_4970$class_2251;Ljava/util/function/Predicate;Ljava/util/Map;)V- named - <init>- Lnet/minecraft/block/LeveledCauldronBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Ljava/util/function/Predicate;Ljava/util/Map;)V
 
 
- 
- 
Method Details- 
isFullReturnstrueif the specified cauldron state is completely full,falseotherwise.- Specified by:
- isFullin class- AbstractCauldronBlock
- Parameters:
- state- the cauldron state to check
- Returns:
- trueif the specified cauldron state is completely full,- falseotherwise
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcof;d(Ldcb;)Z- intermediary - method_32766- Lnet/minecraft/class_2275;method_32766(Lnet/minecraft/class_2680;)Z- named - isFull- Lnet/minecraft/block/AbstractCauldronBlock;isFull(Lnet/minecraft/block/BlockState;)Z
 
- 
canBeFilledByDripstoneChecks if this cauldron block can be filled with the specified fluid by dripstone.- Overrides:
- canBeFilledByDripstonein class- AbstractCauldronBlock
- Parameters:
- fluid- the fluid to check
- Returns:
- trueif this block can be filled,- falseotherwise
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcof;a(Ldxd;)Z- intermediary - method_32765- Lnet/minecraft/class_2275;method_32765(Lnet/minecraft/class_3611;)Z- named - canBeFilledByDripstone- Lnet/minecraft/block/AbstractCauldronBlock;canBeFilledByDripstone(Lnet/minecraft/fluid/Fluid;)Z
 
- 
getFluidHeight- Overrides:
- getFluidHeightin class- AbstractCauldronBlock
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcof;b(Ldcb;)D- intermediary - method_31615- Lnet/minecraft/class_2275;method_31615(Lnet/minecraft/class_2680;)D- named - getFluidHeight- Lnet/minecraft/block/AbstractCauldronBlock;getFluidHeight(Lnet/minecraft/block/BlockState;)D
 
- 
onEntityCollisionCalled when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; useBlock.onSteppedOn(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.Entity)for those blocks.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.Here are some examples: - CactusBlockdamages the entity.
- AbstractPressurePlateBlocktriggers.
- CobwebBlockslows the entity.
- EndPortalBlockteleports the entity.
- HopperBlockcollects the item entity.
 - Overrides:
- onEntityCollisionin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldca;a(Ldcb;Lcmm;Lgu;Lbfj;)V- intermediary - method_9548- Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V- named - onEntityCollision- Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
 
- 
onFireCollision- Mappings:
- Namespace - Name - Mixin selector - official - d- Lctt;d(Ldcb;Lcmm;Lgu;)V- intermediary - method_36994- Lnet/minecraft/class_5556;method_36994(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- named - onFireCollision- Lnet/minecraft/block/LeveledCauldronBlock;onFireCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
 
- 
decrementFluidLevel- Mappings:
- Namespace - Name - Mixin selector - official - e- Lctt;e(Ldcb;Lcmm;Lgu;)V- intermediary - method_31650- Lnet/minecraft/class_5556;method_31650(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- named - decrementFluidLevel- Lnet/minecraft/block/LeveledCauldronBlock;decrementFluidLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
 
- 
precipitationTickpublic void precipitationTick(BlockState state, World world, BlockPos pos, Biome.Precipitation precipitation) Called randomly server-side on blocks with unobstructed sky access when it is raining or snowing. Like random ticks, only blocks within 128-block cylinder (i.e. ignoring Y coordinates) around players receive precipitation ticks. However, precipitation ticks are unaffected by therandomTickSpeedgame rule, andAbstractBlock.Settings.ticksRandomly()block setting is not required.LeveledCauldronBlockuses this to fill the cauldron.- Overrides:
- precipitationTickin class- Block
- Parameters:
- precipitation- the precipitation (snow or rain), including snow observable on high altitude
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcpn;a(Ldcb;Lcmm;Lgu;Lcnk$c;)V- intermediary - method_9504- Lnet/minecraft/class_2248;method_9504(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1959$class_1963;)V- named - precipitationTick- Lnet/minecraft/block/Block;precipitationTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/Biome$Precipitation;)V
 
- 
getComparatorOutputReturns the comparator output of the block, from0to15.When overriding this, AbstractBlock.hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
- getComparatorOutputin class- AbstractBlock
- Returns:
- the comparator output of the block, from 0to15
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldca;a(Ldcb;Lcmm;Lgu;)I- intermediary - method_9572- Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I- named - getComparatorOutput- Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcpn;a(Ldcc$a;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
 
- 
fillFromDripstoneFills a cauldron with one level of the specified fluid if possible.- Overrides:
- fillFromDripstonein class- AbstractCauldronBlock
- Parameters:
- state- the current cauldron state
- world- the world where the cauldron is located
- pos- the cauldron's position
- fluid- the fluid to fill the cauldron with
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcof;a(Ldcb;Lcmm;Lgu;Ldxd;)V- intermediary - method_32764- Lnet/minecraft/class_2275;method_32764(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3611;)V- named - fillFromDripstone- Lnet/minecraft/block/AbstractCauldronBlock;fillFromDripstone(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/Fluid;)V
 
 
-