Package net.minecraft.block
Class CauldronBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractCauldronBlock
net.minecraft.block.CauldronBlock
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
An empty cauldron block.
- Mappings:
Namespace Name named net/minecraft/block/CauldronBlockintermediary net/minecraft/class_5546official dgt
-
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 TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CauldronBlock> private static final floatprivate static final floatFields inherited from class net.minecraft.block.AbstractCauldronBlock
behaviorMap, field_30988, OUTLINE_SHAPEFields inherited from class net.minecraft.block.Block
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanBeFilledByDripstone(Fluid fluid) Checks if this cauldron block can be filled with the specified fluid by dripstone.protected static booleancanFillWithPrecipitation(World world, Biome.Precipitation precipitation) protected voidfillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid) Fills a cauldron with one level of the specified fluid if possible.com.mojang.serialization.MapCodec<CauldronBlock> getCodec()booleanisFull(BlockState state) Returnstrueif the specified cauldron state is completely full,falseotherwise.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.AbstractCauldronBlock
canPathfindThrough, getFluidHeight, getOutlineShape, getRaycastShape, hasComparatorOutput, isEntityTouchingFluid, onUseWithItem, scheduledTickMethods 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, 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
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/CauldronBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46305Lnet/minecraft/class_5546;field_46305:Lcom/mojang/serialization/MapCodec;official dLdgt;d:Lcom/mojang/serialization/MapCodec;
-
FILL_WITH_RAIN_CHANCE
private static final float FILL_WITH_RAIN_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named FILL_WITH_RAIN_CHANCELnet/minecraft/block/CauldronBlock;FILL_WITH_RAIN_CHANCE:Fintermediary field_34027Lnet/minecraft/class_5546;field_34027:Fofficial eLdgt;e:F
-
FILL_WITH_SNOW_CHANCE
private static final float FILL_WITH_SNOW_CHANCE- See Also:
- Mappings:
Namespace Name Mixin selector named FILL_WITH_SNOW_CHANCELnet/minecraft/block/CauldronBlock;FILL_WITH_SNOW_CHANCE:Fintermediary field_34028Lnet/minecraft/class_5546;field_34028:Fofficial fLdgt;f:F
-
-
Constructor Details
-
CauldronBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldtb;<init>(Ldtb$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodecin classAbstractCauldronBlock- 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;
-
isFull
Returnstrueif the specified cauldron state is completely full,falseotherwise.- Specified by:
isFullin classAbstractCauldronBlock- 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
-
canFillWithPrecipitation
- Mappings:
Namespace Name Mixin selector named canFillWithPrecipitationLnet/minecraft/block/CauldronBlock;canFillWithPrecipitation(Lnet/minecraft/world/World;Lnet/minecraft/world/biome/Biome$Precipitation;)Zintermediary method_31636Lnet/minecraft/class_5546;method_31636(Lnet/minecraft/class_1937;Lnet/minecraft/class_1959$class_1963;)Zofficial aLdgt;a(Ldcw;Lddw$c;)Z
-
precipitationTick
public 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 classBlock- Parameters:
precipitation- the precipitation (snow or rain), including snow observable on high altitude- Mappings:
Namespace Name Mixin selector named precipitationTickLnet/minecraft/block/Block;precipitationTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/Biome$Precipitation;)Vintermediary method_9504Lnet/minecraft/class_2248;method_9504(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1959$class_1963;)Vofficial aLdfy;a(Ldtc;Ldcw;Ljd;Lddw$c;)V
-
canBeFilledByDripstone
Checks if this cauldron block can be filled with the specified fluid by dripstone.- Overrides:
canBeFilledByDripstonein classAbstractCauldronBlock- 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.- Overrides:
fillFromDripstonein classAbstractCauldronBlock- 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
-