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/LeveledCauldronBlock
intermediary net/minecraft/class_5556
official djr
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final com.mojang.serialization.MapCodec
<LeveledCauldronBlock> private static final double
static final IntProperty
static final int
static final int
private final Biome.Precipitation
Fields inherited from class net.minecraft.block.AbstractCauldronBlock
behaviorMap, field_30988, OUTLINE_SHAPE
Fields 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, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
ConstructorDescriptionLeveledCauldronBlock
(Biome.Precipitation precipitation, CauldronBehavior.CauldronBehaviorMap behaviorMap, AbstractBlock.Settings settings) Constructs a leveled cauldron block. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.protected boolean
canBeFilledByDripstone
(Fluid fluid) Checks if this cauldron block can be filled with the specified fluid by dripstone.static void
decrementFluidLevel
(BlockState state, World world, BlockPos pos) protected void
fillFromDripstone
(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 int
getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.protected double
getFluidHeight
(BlockState state) boolean
isFull
(BlockState state) Returnstrue
if the specified cauldron state is completely full,false
otherwise.protected void
onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.private void
onFireCollision
(BlockState state, World world, BlockPos pos) 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.Methods inherited from class net.minecraft.block.AbstractCauldronBlock
canPathfindThrough, getOutlineShape, getRaycastShape, hasComparatorOutput, isEntityTouchingFluid, onUseWithItem, scheduledTick
Methods 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, toString
Methods 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, rotate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/LeveledCauldronBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46383
Lnet/minecraft/class_5556;field_46383:Lcom/mojang/serialization/MapCodec;
official d
Ldjr;d:Lcom/mojang/serialization/MapCodec;
-
MIN_LEVEL
public static final int MIN_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_LEVEL
Lnet/minecraft/block/LeveledCauldronBlock;MIN_LEVEL:I
intermediary field_31107
Lnet/minecraft/class_5556;field_31107:I
official e
Ldjr;e:I
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEVEL
Lnet/minecraft/block/LeveledCauldronBlock;MAX_LEVEL:I
intermediary field_31108
Lnet/minecraft/class_5556;field_31108:I
official f
Ldjr;f:I
-
LEVEL
- Mappings:
Namespace Name Mixin selector named LEVEL
Lnet/minecraft/block/LeveledCauldronBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
intermediary field_27206
Lnet/minecraft/class_5556;field_27206:Lnet/minecraft/class_2758;
official g
Ldjr;g:Ldtl;
-
BASE_FLUID_HEIGHT
private static final int BASE_FLUID_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named BASE_FLUID_HEIGHT
Lnet/minecraft/block/LeveledCauldronBlock;BASE_FLUID_HEIGHT:I
intermediary field_31109
Lnet/minecraft/class_5556;field_31109:I
official h
Ldjr;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_LEVEL
Lnet/minecraft/block/LeveledCauldronBlock;FLUID_HEIGHT_PER_LEVEL:D
intermediary field_31110
Lnet/minecraft/class_5556;field_31110:D
official i
Ldjr;i:D
-
precipitation
- Mappings:
Namespace Name Mixin selector named precipitation
Lnet/minecraft/block/LeveledCauldronBlock;precipitation:Lnet/minecraft/world/biome/Biome$Precipitation;
intermediary field_46384
Lnet/minecraft/class_5556;field_46384:Lnet/minecraft/class_1959$class_1963;
official j
Ldjr;j:Lddg$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;)V
intermediary <init>
Lnet/minecraft/class_5556;<init>(Lnet/minecraft/class_1959$class_1963;Lnet/minecraft/class_5620$class_8821;Lnet/minecraft/class_4970$class_2251;)V
official <init>
Ldjr;<init>(Lddg$c;Lkg$a;Ldsk$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in classAbstractCauldronBlock
- 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
Ldsk;a()Lcom/mojang/serialization/MapCodec;
-
isFull
Returnstrue
if the specified cauldron state is completely full,false
otherwise.- Specified by:
isFull
in classAbstractCauldronBlock
- Parameters:
state
- the cauldron state to check- Returns:
true
if the specified cauldron state is completely full,false
otherwise- 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
Ldeb;d(Ldsl;)Z
-
canBeFilledByDripstone
Checks if this cauldron block can be filled with the specified fluid by dripstone.- Overrides:
canBeFilledByDripstone
in classAbstractCauldronBlock
- Parameters:
fluid
- the fluid to check- Returns:
true
if this block can be filled,false
otherwise- 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
Ldeb;a(Leoi;)Z
-
getFluidHeight
- Overrides:
getFluidHeight
in classAbstractCauldronBlock
- 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
Ldeb;b(Ldsl;)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:
CactusBlock
damages the entity.AbstractPressurePlateBlock
triggers.CobwebBlock
slows the entity.EndPortalBlock
teleports the entity.HopperBlock
collects the item entity.
- Overrides:
onEntityCollision
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollision
Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
intermediary method_9548
Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
official a
Ldsk;a(Ldsl;Ldcg;Lja;Lbsh;)V
-
onFireCollision
- Mappings:
Namespace Name Mixin selector named onFireCollision
Lnet/minecraft/block/LeveledCauldronBlock;onFireCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_36994
Lnet/minecraft/class_5556;method_36994(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
official e
Ldjr;e(Ldsl;Ldcg;Lja;)V
-
decrementFluidLevel
- Mappings:
Namespace Name Mixin selector named decrementFluidLevel
Lnet/minecraft/block/LeveledCauldronBlock;decrementFluidLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_31650
Lnet/minecraft/class_5556;method_31650(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
official d
Ldjr;d(Ldsl;Ldcg;Lja;)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 therandomTickSpeed
game rule, andAbstractBlock.Settings.ticksRandomly()
block setting is not required.LeveledCauldronBlock
uses this to fill the cauldron.- Overrides:
precipitationTick
in classBlock
- Parameters:
precipitation
- the precipitation (snow or rain), including snow observable on high altitude- Mappings:
Namespace Name Mixin selector named precipitationTick
Lnet/minecraft/block/Block;precipitationTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/Biome$Precipitation;)V
intermediary method_9504
Lnet/minecraft/class_2248;method_9504(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1959$class_1963;)V
official a
Ldfi;a(Ldsl;Ldcg;Lja;Lddg$c;)V
-
getComparatorOutput
Returns the comparator output of the block, from0
to15
.When overriding this,
AbstractCauldronBlock.hasComparatorOutput(net.minecraft.block.BlockState)
must also be overridden.- Overrides:
getComparatorOutput
in classAbstractBlock
- Returns:
- the comparator output of the block, from
0
to15
- See Also:
- Mappings:
Namespace Name Mixin selector named getComparatorOutput
Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
intermediary method_9572
Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
official a
Ldsk;a(Ldsl;Ldcg;Lja;)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. SeeProperties
for the list of pre-defined properties.- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
official a
Ldfi;a(Ldsm$a;)V
-
fillFromDripstone
Fills a cauldron with one level of the specified fluid if possible.- Overrides:
fillFromDripstone
in 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 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
Ldeb;a(Ldsl;Ldcg;Lja;Leoi;)V
-