Package net.minecraft.block
Class AbstractCauldronBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractCauldronBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Direct Known Subclasses:
- CauldronBlock,- LavaCauldronBlock,- LeveledCauldronBlock
The base class for all cauldrons.
 
Interaction with cauldrons is controlled by cauldron behaviors.
- See Also:
- Mappings:
- Namespace - Name - named - net/minecraft/block/AbstractCauldronBlock- intermediary - net/minecraft/class_2275- official - ddu
- 
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 TypeFieldDescriptionprotected final CauldronBehavior.CauldronBehaviorMapprotected static final intprivate static final intprivate static final intprivate static final intprivate static final intprotected static final VoxelShapeprivate static final VoxelShapeFields inherited from class net.minecraft.block.BlockCODEC, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractCauldronBlock(AbstractBlock.Settings settings, CauldronBehavior.CauldronBehaviorMap behaviorMap) Constructs a cauldron block.
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleancanBeFilledByDripstone(Fluid fluid) Checks if this cauldron block can be filled with the specified fluid by dripstone.protected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.protected voidfillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid) Fills a cauldron with one level of the specified fluid if possible.protected abstract com.mojang.serialization.MapCodec<? extends AbstractCauldronBlock> getCodec()protected doublegetFluidHeight(BlockState state) protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected VoxelShapegetRaycastShape(BlockState state, BlockView world, BlockPos pos) protected booleanhasComparatorOutput(BlockState state) Returns whether the block can have a comparator output.protected booleanisEntityTouchingFluid(BlockState state, BlockPos pos, Entity entity) abstract booleanisFull(BlockState state) Returnstrueif the specified cauldron state is completely full,falseotherwise.protected ItemActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.Methods inherited from class net.minecraft.block.BlockafterBreak, appendProperties, 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, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, 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- 
field_30989private static final int field_30989- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30989- Lnet/minecraft/block/AbstractCauldronBlock;field_30989:I- intermediary - field_30989- Lnet/minecraft/class_2275;field_30989:I- official - d- Lddu;d:I
 
- 
field_30990private static final int field_30990- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30990- Lnet/minecraft/block/AbstractCauldronBlock;field_30990:I- intermediary - field_30990- Lnet/minecraft/class_2275;field_30990:I- official - e- Lddu;e:I
 
- 
field_30991private static final int field_30991- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30991- Lnet/minecraft/block/AbstractCauldronBlock;field_30991:I- intermediary - field_30991- Lnet/minecraft/class_2275;field_30991:I- official - f- Lddu;f:I
 
- 
field_30992private static final int field_30992- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30992- Lnet/minecraft/block/AbstractCauldronBlock;field_30992:I- intermediary - field_30992- Lnet/minecraft/class_2275;field_30992:I- official - g- Lddu;g:I
 
- 
field_30988protected static final int field_30988- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30988- Lnet/minecraft/block/AbstractCauldronBlock;field_30988:I- intermediary - field_30988- Lnet/minecraft/class_2275;field_30988:I- official - a- Lddu;a:I
 
- 
RAYCAST_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - RAYCAST_SHAPE- Lnet/minecraft/block/AbstractCauldronBlock;RAYCAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_10747- Lnet/minecraft/class_2275;field_10747:Lnet/minecraft/class_265;- official - h- Lddu;h:Lewm;
 
- 
OUTLINE_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - OUTLINE_SHAPE- Lnet/minecraft/block/AbstractCauldronBlock;OUTLINE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_10746- Lnet/minecraft/class_2275;field_10746:Lnet/minecraft/class_265;- official - b- Lddu;b:Lewm;
 
- 
behaviorMap- Mappings:
- Namespace - Name - Mixin selector - named - behaviorMap- Lnet/minecraft/block/AbstractCauldronBlock;behaviorMap:Lnet/minecraft/block/cauldron/CauldronBehavior$CauldronBehaviorMap;- intermediary - field_27084- Lnet/minecraft/class_2275;field_27084:Lnet/minecraft/class_5620$class_8821;- official - c- Lddu;c:Lkf$a;
 
 
- 
- 
Constructor Details- 
AbstractCauldronBlockpublic AbstractCauldronBlock(AbstractBlock.Settings settings, CauldronBehavior.CauldronBehaviorMap behaviorMap) Constructs a cauldron block.The behavior map must match CauldronBehavior.createMap(java.lang.String)by providing a nonnull value for all items.- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/AbstractCauldronBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Lnet/minecraft/block/cauldron/CauldronBehavior$CauldronBehaviorMap;)V- intermediary - <init>- Lnet/minecraft/class_2275;<init>(Lnet/minecraft/class_4970$class_2251;Lnet/minecraft/class_5620$class_8821;)V- official - <init>- Lddu;<init>(Ldsd$d;Lkf$a;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldsd;a()Lcom/mojang/serialization/MapCodec;
 
- 
getFluidHeight- Mappings:
- Namespace - Name - Mixin selector - named - getFluidHeight- Lnet/minecraft/block/AbstractCauldronBlock;getFluidHeight(Lnet/minecraft/block/BlockState;)D- intermediary - method_31615- Lnet/minecraft/class_2275;method_31615(Lnet/minecraft/class_2680;)D- official - b- Lddu;b(Ldse;)D
 
- 
isEntityTouchingFluid- Mappings:
- Namespace - Name - Mixin selector - named - isEntityTouchingFluid- Lnet/minecraft/block/AbstractCauldronBlock;isEntityTouchingFluid(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z- intermediary - method_31616- Lnet/minecraft/class_2275;method_31616(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Z- official - a- Lddu;a(Ldse;Liz;Lbsw;)Z
 
- 
onUseWithItemprotected ItemActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
- onUseWithItemin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUseWithItem- Lnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ItemActionResult;- intermediary - method_55765- Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_9062;- official - a- Ldsd;a(Lcur;Ldse;Ldca;Liz;Lcmz;Lbqv;Levp;)Lbqy;
 
- 
getOutlineShapeprotected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getOutlineShape- Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9530- Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;- official - a- Ldsd;a(Ldse;Ldbg;Liz;Levy;)Lewm;
 
- 
getRaycastShape- Overrides:
- getRaycastShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getRaycastShape- Lnet/minecraft/block/AbstractBlock;getRaycastShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9584- Lnet/minecraft/class_4970;method_9584(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;- official - a- Ldsd;a(Ldse;Ldbg;Liz;)Lewm;
 
- 
hasComparatorOutputReturns whether the block can have a comparator output.This does not check the current comparator output of the block. Use AbstractBlock.getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)in that case.- Overrides:
- hasComparatorOutputin class- AbstractBlock
- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - hasComparatorOutput- Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9498- Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z- official - c_- Ldsd;c_(Ldse;)Z
 
- 
isFullReturnstrueif the specified cauldron state is completely full,falseotherwise.- Parameters:
- state- the cauldron state to check
- Returns:
- trueif the specified cauldron state is completely full,- falseotherwise
- Mappings:
- Namespace - Name - Mixin selector - named - isFull- Lnet/minecraft/block/AbstractCauldronBlock;isFull(Lnet/minecraft/block/BlockState;)Z- intermediary - method_32766- Lnet/minecraft/class_2275;method_32766(Lnet/minecraft/class_2680;)Z- official - d- Lddu;d(Ldse;)Z
 
- 
scheduledTickCalled server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added using.invalid referenceWorldAccess#scheduleBlockTick(BlockPos, Block, int)Scheduled ticks are often used inside AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos).Here are some examples: - SugarCaneBlockchecks the placement requirement.
- DispenserBlockdispenses its content.
- CommandBlockexecutes its command.
- FrogspawnBlockspawns a tadpole.
- SoulSandBlockupdates a bubble column.
- FallingBlocktries to fall.
 - Overrides:
- scheduledTickin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - scheduledTick- Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V- intermediary - method_9588- Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V- official - a- Ldsd;a(Ldse;Larf;Liz;Lazh;)V
 
- 
canBeFilledByDripstoneChecks if this cauldron block can be filled with the specified fluid by dripstone.- Parameters:
- fluid- the fluid to check
- Returns:
- trueif this block can be filled,- falseotherwise
- Mappings:
- Namespace - Name - Mixin selector - named - canBeFilledByDripstone- Lnet/minecraft/block/AbstractCauldronBlock;canBeFilledByDripstone(Lnet/minecraft/fluid/Fluid;)Z- intermediary - method_32765- Lnet/minecraft/class_2275;method_32765(Lnet/minecraft/class_3611;)Z- official - a- Lddu;a(Lenw;)Z
 
- 
fillFromDripstoneFills a cauldron with one level of the specified fluid if possible.- 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 - 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- 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- official - a- Lddu;a(Ldse;Ldca;Liz;Lenw;)V
 
 
-