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
Constructs a leveled cauldron block.
- Mappings:
Namespace Name named net/minecraft/block/LeveledCauldronBlockintermediary net/minecraft/class_5556official dkh
-
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 TypeFieldDescriptionprivate static final intstatic final com.mojang.serialization.MapCodec<LeveledCauldronBlock> private static final doublestatic final IntPropertystatic final intstatic final intprivate final Biome.PrecipitationFields 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
ConstructorsConstructorDescriptionLeveledCauldronBlock(Biome.Precipitation precipitation, CauldronBehavior.CauldronBehaviorMap behaviorMap, AbstractBlock.Settings settings) Constructs a leveled cauldron block. -
Method Summary
Modifier 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.com.mojang.serialization.MapCodec<LeveledCauldronBlock> getCodec()protected 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.protected voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.private 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.AbstractCauldronBlock
canPathfindThrough, getOutlineShape, getRaycastShape, hasComparatorOutput, isEntityTouchingFluid, onUseWithItem, scheduledTickMethods inherited from class net.minecraft.block.Block
afterBreak, 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, 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, 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/LeveledCauldronBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46383Lnet/minecraft/class_5556;field_46383:Lcom/mojang/serialization/MapCodec;official dLdkh;d:Lcom/mojang/serialization/MapCodec;
-
MIN_LEVEL
public static final int MIN_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_LEVELLnet/minecraft/block/LeveledCauldronBlock;MIN_LEVEL:Iintermediary field_31107Lnet/minecraft/class_5556;field_31107:Iofficial eLdkh;e:I
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVELLnet/minecraft/block/LeveledCauldronBlock;MAX_LEVEL:Iintermediary field_31108Lnet/minecraft/class_5556;field_31108:Iofficial fLdkh;f:I
-
LEVEL
- Mappings:
Namespace Name Mixin selector named LEVELLnet/minecraft/block/LeveledCauldronBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;intermediary field_27206Lnet/minecraft/class_5556;field_27206:Lnet/minecraft/class_2758;official gLdkh;g:Lduc;
-
BASE_FLUID_HEIGHT
private static final int BASE_FLUID_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named BASE_FLUID_HEIGHTLnet/minecraft/block/LeveledCauldronBlock;BASE_FLUID_HEIGHT:Iintermediary field_31109Lnet/minecraft/class_5556;field_31109:Iofficial hLdkh;h:I
-
FLUID_HEIGHT_PER_LEVEL
private static final double FLUID_HEIGHT_PER_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named FLUID_HEIGHT_PER_LEVELLnet/minecraft/block/LeveledCauldronBlock;FLUID_HEIGHT_PER_LEVEL:Dintermediary field_31110Lnet/minecraft/class_5556;field_31110:Dofficial iLdkh;i:D
-
precipitation
- Mappings:
Namespace Name Mixin selector named precipitationLnet/minecraft/block/LeveledCauldronBlock;precipitation:Lnet/minecraft/world/biome/Biome$Precipitation;intermediary field_46384Lnet/minecraft/class_5556;field_46384:Lnet/minecraft/class_1959$class_1963;official jLdkh;j:Lddw$c;
-
-
Constructor Details
-
LeveledCauldronBlock
public LeveledCauldronBlock(Biome.Precipitation precipitation, CauldronBehavior.CauldronBehaviorMap behaviorMap, AbstractBlock.Settings settings) Constructs a leveled cauldron block.- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/LeveledCauldronBlock;<init>(Lnet/minecraft/world/biome/Biome$Precipitation;Lnet/minecraft/block/cauldron/CauldronBehavior$CauldronBehaviorMap;Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_5556;<init>(Lnet/minecraft/class_1959$class_1963;Lnet/minecraft/class_5620$class_8821;Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldkh;<init>(Lddw$c;Lkj$a;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
-
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
-
getFluidHeight
- Overrides:
getFluidHeightin classAbstractCauldronBlock- 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
-
onEntityCollision
Called 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 classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vofficial aLdtb;a(Ldtc;Ldcw;Ljd;Lbsr;)V
-
onFireCollision
- Mappings:
Namespace Name Mixin selector named onFireCollisionLnet/minecraft/block/LeveledCauldronBlock;onFireCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_36994Lnet/minecraft/class_5556;method_36994(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial eLdkh;e(Ldtc;Ldcw;Ljd;)V
-
decrementFluidLevel
- Mappings:
Namespace Name Mixin selector named decrementFluidLevelLnet/minecraft/block/LeveledCauldronBlock;decrementFluidLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_31650Lnet/minecraft/class_5556;method_31650(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vofficial dLdkh;d(Ldtc;Ldcw;Ljd;)V
-
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
-
getComparatorOutput
Returns the comparator output of the block, from0to15.When overriding this,
AbstractCauldronBlock.hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
getComparatorOutputin classAbstractBlock- Returns:
- the comparator output of the block, from
0to15 - See Also:
- Mappings:
Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Iofficial aLdtb;a(Ldtc;Ldcw;Ljd;)I
-
appendProperties
Appends 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 classBlock- Mappings:
Namespace Name Mixin selector named appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLdfy;a(Ldtd$a;)V
-
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
-