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/AbstractCauldronBlockintermediary net/minecraft/class_2275official der
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier 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.Block
CODEC, 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.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCauldronBlock(AbstractBlock.Settings settings, CauldronBehavior.CauldronBehaviorMap behaviorMap) Constructs a cauldron block. -
Method Summary
Modifier 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.Block
afterBreak, 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.AbstractBlock
calcBlockBreakingDelta, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_30989
private static final int field_30989- See Also:
- Mappings:
Namespace Name Mixin selector named field_30989Lnet/minecraft/block/AbstractCauldronBlock;field_30989:Iintermediary field_30989Lnet/minecraft/class_2275;field_30989:Iofficial dLder;d:I
-
field_30990
private static final int field_30990- See Also:
- Mappings:
Namespace Name Mixin selector named field_30990Lnet/minecraft/block/AbstractCauldronBlock;field_30990:Iintermediary field_30990Lnet/minecraft/class_2275;field_30990:Iofficial eLder;e:I
-
field_30991
private static final int field_30991- See Also:
- Mappings:
Namespace Name Mixin selector named field_30991Lnet/minecraft/block/AbstractCauldronBlock;field_30991:Iintermediary field_30991Lnet/minecraft/class_2275;field_30991:Iofficial fLder;f:I
-
field_30992
private static final int field_30992- See Also:
- Mappings:
Namespace Name Mixin selector named field_30992Lnet/minecraft/block/AbstractCauldronBlock;field_30992:Iintermediary field_30992Lnet/minecraft/class_2275;field_30992:Iofficial gLder;g:I
-
field_30988
protected static final int field_30988- See Also:
- Mappings:
Namespace Name Mixin selector named field_30988Lnet/minecraft/block/AbstractCauldronBlock;field_30988:Iintermediary field_30988Lnet/minecraft/class_2275;field_30988:Iofficial aLder;a:I
-
RAYCAST_SHAPE
- Mappings:
Namespace Name Mixin selector named RAYCAST_SHAPELnet/minecraft/block/AbstractCauldronBlock;RAYCAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_10747Lnet/minecraft/class_2275;field_10747:Lnet/minecraft/class_265;official hLder;h:Lexv;
-
OUTLINE_SHAPE
- Mappings:
Namespace Name Mixin selector named OUTLINE_SHAPELnet/minecraft/block/AbstractCauldronBlock;OUTLINE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_10746Lnet/minecraft/class_2275;field_10746:Lnet/minecraft/class_265;official bLder;b:Lexv;
-
behaviorMap
- Mappings:
Namespace Name Mixin selector named behaviorMapLnet/minecraft/block/AbstractCauldronBlock;behaviorMap:Lnet/minecraft/block/cauldron/CauldronBehavior$CauldronBehaviorMap;intermediary field_27084Lnet/minecraft/class_2275;field_27084:Lnet/minecraft/class_5620$class_8821;official cLder;c:Lkj$a;
-
-
Constructor Details
-
AbstractCauldronBlock
public 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;)Vintermediary <init>Lnet/minecraft/class_2275;<init>(Lnet/minecraft/class_4970$class_2251;Lnet/minecraft/class_5620$class_8821;)Vofficial <init>Lder;<init>(Ldtb$d;Lkj$a;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
getFluidHeight
- Mappings:
Namespace Name Mixin selector named getFluidHeightLnet/minecraft/block/AbstractCauldronBlock;getFluidHeight(Lnet/minecraft/block/BlockState;)Dintermediary method_31615Lnet/minecraft/class_2275;method_31615(Lnet/minecraft/class_2680;)Dofficial bLder;b(Ldtc;)D
-
isEntityTouchingFluid
- Mappings:
Namespace Name Mixin selector named isEntityTouchingFluidLnet/minecraft/block/AbstractCauldronBlock;isEntityTouchingFluid(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Zintermediary method_31616Lnet/minecraft/class_2275;method_31616(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Zofficial aLder;a(Ldtc;Ljd;Lbsr;)Z
-
onUseWithItem
protected ItemActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
onUseWithItemin classAbstractBlock- Mappings:
Namespace Name Mixin selector named onUseWithItemLnet/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_55765Lnet/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 aLdtb;a(Lcuq;Ldtc;Ldcw;Ljd;Lcmx;Lbqq;Lewy;)Lbqt;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getOutlineShapeLnet/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_9530Lnet/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 aLdtb;a(Ldtc;Ldcc;Ljd;Lexh;)Lexv;
-
getRaycastShape
- Overrides:
getRaycastShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getRaycastShapeLnet/minecraft/block/AbstractBlock;getRaycastShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_9584Lnet/minecraft/class_4970;method_9584(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;official aLdtb;a(Ldtc;Ldcc;Ljd;)Lexv;
-
hasComparatorOutput
Returns 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 classAbstractBlock- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
Namespace Name Mixin selector named hasComparatorOutputLnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Zintermediary method_9498Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Zofficial c_Ldtb;c_(Ldtc;)Z
-
isFull
Returnstrueif 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 isFullLnet/minecraft/block/AbstractCauldronBlock;isFull(Lnet/minecraft/block/BlockState;)Zintermediary method_32766Lnet/minecraft/class_2275;method_32766(Lnet/minecraft/class_2680;)Zofficial dLder;d(Ldtc;)Z
-
scheduledTick
Called 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).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 classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdtb;a(Ldtc;Laqu;Ljd;Layw;)V
-
canBeFilledByDripstone
Checks 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 canBeFilledByDripstoneLnet/minecraft/block/AbstractCauldronBlock;canBeFilledByDripstone(Lnet/minecraft/fluid/Fluid;)Zintermediary method_32765Lnet/minecraft/class_2275;method_32765(Lnet/minecraft/class_3611;)Zofficial aLder;a(Lepd;)Z
-
fillFromDripstone
Fills a cauldron with one level of the specified fluid if possible.- Parameters:
state- the current cauldron stateworld- the world where the cauldron is locatedpos- the cauldron's positionfluid- the fluid to fill the cauldron with- Mappings:
Namespace Name Mixin selector named fillFromDripstoneLnet/minecraft/block/AbstractCauldronBlock;fillFromDripstone(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/Fluid;)Vintermediary method_32764Lnet/minecraft/class_2275;method_32764(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3611;)Vofficial aLder;a(Ldtc;Ldcw;Ljd;Lepd;)V
-