Class AbstractCauldronBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Direct Known Subclasses:
- CauldronBlock,- LavaCauldronBlock,- LeveledCauldronBlock
Interaction with cauldrons is controlled by cauldron behaviors.
- See Also:
- Mappings:
- Namespace - Name - official - cof- intermediary - net/minecraft/class_2275- named - net/minecraft/block/AbstractCauldronBlock
- 
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 final Map<Item,CauldronBehavior> protected 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.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 SummaryConstructorsConstructorDescriptionAbstractCauldronBlock(AbstractBlock.Settings settings, Map<Item, CauldronBehavior> 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.booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, 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 doublegetFluidHeight(BlockState state) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getRaycastShape(BlockState state, BlockView world, BlockPos pos) 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.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.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, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, 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, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, 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- 
field_30989private static final int field_30989- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcof;c:I- intermediary - field_30989- Lnet/minecraft/class_2275;field_30989:I- named - field_30989- Lnet/minecraft/block/AbstractCauldronBlock;field_30989:I
 
- 
field_30990private static final int field_30990- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcof;d:I- intermediary - field_30990- Lnet/minecraft/class_2275;field_30990:I- named - field_30990- Lnet/minecraft/block/AbstractCauldronBlock;field_30990:I
 
- 
field_30991private static final int field_30991- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcof;e:I- intermediary - field_30991- Lnet/minecraft/class_2275;field_30991:I- named - field_30991- Lnet/minecraft/block/AbstractCauldronBlock;field_30991:I
 
- 
field_30992private static final int field_30992- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lcof;f:I- intermediary - field_30992- Lnet/minecraft/class_2275;field_30992:I- named - field_30992- Lnet/minecraft/block/AbstractCauldronBlock;field_30992:I
 
- 
field_30988protected static final int field_30988- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcof;a:I- intermediary - field_30988- Lnet/minecraft/class_2275;field_30988:I- named - field_30988- Lnet/minecraft/block/AbstractCauldronBlock;field_30988:I
 
- 
RAYCAST_SHAPE- Mappings:
- Namespace - Name - Mixin selector - official - g- Lcof;g:Lefb;- intermediary - field_10747- Lnet/minecraft/class_2275;field_10747:Lnet/minecraft/class_265;- named - RAYCAST_SHAPE- Lnet/minecraft/block/AbstractCauldronBlock;RAYCAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
 
- 
OUTLINE_SHAPE- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcof;b:Lefb;- intermediary - field_10746- Lnet/minecraft/class_2275;field_10746:Lnet/minecraft/class_265;- named - OUTLINE_SHAPE- Lnet/minecraft/block/AbstractCauldronBlock;OUTLINE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
 
- 
behaviorMap- Mappings:
- Namespace - Name - Mixin selector - official - h- Lcof;h:Ljava/util/Map;- intermediary - field_27084- Lnet/minecraft/class_2275;field_27084:Ljava/util/Map;- named - behaviorMap- Lnet/minecraft/block/AbstractCauldronBlock;behaviorMap:Ljava/util/Map;
 
 
- 
- 
Constructor Details- 
AbstractCauldronBlockpublic AbstractCauldronBlock(AbstractBlock.Settings settings, Map<Item, CauldronBehavior> behaviorMap) Constructs a cauldron block.The behavior map must match CauldronBehavior.createMap()by providing a nonnull value for all items.- Parameters:
- behaviorMap- the map containing cauldron behaviors for each item
- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcof;<init>(Ldca$d;Ljava/util/Map;)V- intermediary - <init>- Lnet/minecraft/class_2275;<init>(Lnet/minecraft/class_4970$class_2251;Ljava/util/Map;)V- named - <init>- Lnet/minecraft/block/AbstractCauldronBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Ljava/util/Map;)V
 
 
- 
- 
Method Details- 
getFluidHeight- 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
 
- 
isEntityTouchingFluid- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcof;a(Ldcb;Lgu;Lbfj;)Z- intermediary - method_31616- Lnet/minecraft/class_2275;method_31616(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Z- named - isEntityTouchingFluid- Lnet/minecraft/block/AbstractCauldronBlock;isEntityTouchingFluid(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z
 
- 
onUsepublic ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.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().If the action result is successful on a logical client, then the action will be sent to the logical server for processing. - Overrides:
- onUsein class- AbstractBlock
- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldca;a(Ldcb;Lcmm;Lgu;Lbyo;Lbdw;Leee;)Lbdx;- intermediary - method_9534- Lnet/minecraft/class_4970;method_9534(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_1269;- named - onUse- Lnet/minecraft/block/AbstractBlock;onUse(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/ActionResult;
 
- 
getOutlineShapepublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldca;a(Ldcb;Lcls;Lgu;Leen;)Lefb;- 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;- 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;
 
- 
getRaycastShape- Overrides:
- getRaycastShapein class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldca;a(Ldcb;Lcls;Lgu;)Lefb;- 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;- 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;
 
- 
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 - official - d_- Ldca;d_(Ldcb;)Z- intermediary - method_9498- Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z- named - hasComparatorOutput- Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)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 - 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
 
- 
scheduledTickCalled server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingWorldAccess.scheduleBlockTick(BlockPos, Block, int). Additionally,AbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)by default calls this method; overrideAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)to disable this behavior.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 - official - a- Ldca;a(Ldcb;Laif;Lgu;Lapf;)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- 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
 
- 
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 - 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
 
- 
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 - 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
 
 
-