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
- Direct Known Subclasses:
PowderSnowCauldronBlock
- Mappings:
Namespace Name official cnsintermediary net/minecraft/class_5556named net/minecraft/block/LeveledCauldronBlock
-
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.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final intprivate static final doublestatic final IntPropertyprivate final Predicate<Biome.Precipitation>static final Predicate<Biome.Precipitation>static final Predicate<Biome.Precipitation>Fields inherited from class net.minecraft.block.AbstractCauldronBlock
field_30988, OUTLINE_SHAPEFields inherited from class net.minecraft.block.Block
field_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, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
ConstructorsConstructorDescriptionLeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item, CauldronBehavior> behaviorMap) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.protected booleancanBeFilledByDripstone(Fluid fluid) static voiddecrementFluidLevel(BlockState state, World world, BlockPos pos) protected voidfillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid) intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.protected doublegetFluidHeight(BlockState state) booleanisFull(BlockState state) voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.protected 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, onUse, scheduledTickMethods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, 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, isTranslucent, 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, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate
-
Field Details
-
field_31107
public static final int field_31107- See Also:
- Mappings:
Namespace Name Mixin selector official cLcns;c:Iintermediary field_31107Lnet/minecraft/class_5556;field_31107:Inamed field_31107Lnet/minecraft/block/LeveledCauldronBlock;field_31107:I
-
field_31108
public static final int field_31108- See Also:
- Mappings:
Namespace Name Mixin selector official dLcns;d:Iintermediary field_31108Lnet/minecraft/class_5556;field_31108:Inamed field_31108Lnet/minecraft/block/LeveledCauldronBlock;field_31108:I
-
LEVEL
- Mappings:
Namespace Name Mixin selector official eLcns;e:Lcwo;intermediary field_27206Lnet/minecraft/class_5556;field_27206:Lnet/minecraft/class_2758;named LEVELLnet/minecraft/block/LeveledCauldronBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
-
field_31109
private static final int field_31109- See Also:
- Mappings:
Namespace Name Mixin selector official hLcns;h:Iintermediary field_31109Lnet/minecraft/class_5556;field_31109:Inamed field_31109Lnet/minecraft/block/LeveledCauldronBlock;field_31109:I
-
field_31110
private static final double field_31110- See Also:
- Mappings:
Namespace Name Mixin selector official iLcns;i:Dintermediary field_31110Lnet/minecraft/class_5556;field_31110:Dnamed field_31110Lnet/minecraft/block/LeveledCauldronBlock;field_31110:D
-
RAIN_PREDICATE
- Mappings:
Namespace Name Mixin selector official fLcns;f:Ljava/util/function/Predicate;intermediary field_27880Lnet/minecraft/class_5556;field_27880:Ljava/util/function/Predicate;named RAIN_PREDICATELnet/minecraft/block/LeveledCauldronBlock;RAIN_PREDICATE:Ljava/util/function/Predicate;
-
SNOW_PREDICATE
- Mappings:
Namespace Name Mixin selector official gLcns;g:Ljava/util/function/Predicate;intermediary field_27881Lnet/minecraft/class_5556;field_27881:Ljava/util/function/Predicate;named SNOW_PREDICATELnet/minecraft/block/LeveledCauldronBlock;SNOW_PREDICATE:Ljava/util/function/Predicate;
-
precipitationPredicate
- Mappings:
Namespace Name Mixin selector official jLcns;j:Ljava/util/function/Predicate;intermediary field_27882Lnet/minecraft/class_5556;field_27882:Ljava/util/function/Predicate;named precipitationPredicateLnet/minecraft/block/LeveledCauldronBlock;precipitationPredicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
LeveledCauldronBlock
public LeveledCauldronBlock(AbstractBlock.Settings settings, Predicate<Biome.Precipitation> precipitationPredicate, Map<Item, CauldronBehavior> behaviorMap) - Mappings:
Namespace Name Mixin selector official <init>Lcns;<init>(Lcvn$c;Ljava/util/function/Predicate;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_5556;<init>(Lnet/minecraft/class_4970$class_2251;Ljava/util/function/Predicate;Ljava/util/Map;)Vnamed <init>Lnet/minecraft/block/LeveledCauldronBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Ljava/util/function/Predicate;Ljava/util/Map;)V
-
-
Method Details
-
isFull
- Specified by:
isFullin classAbstractCauldronBlock- Mappings:
Namespace Name Mixin selector official cLcim;c(Lcvo;)Zintermediary method_32766Lnet/minecraft/class_2275;method_32766(Lnet/minecraft/class_2680;)Znamed isFullLnet/minecraft/block/AbstractCauldronBlock;isFull(Lnet/minecraft/block/BlockState;)Z
-
canBeFilledByDripstone
- Overrides:
canBeFilledByDripstonein classAbstractCauldronBlock- Mappings:
Namespace Name Mixin selector official aLcim;a(Ldpu;)Zintermediary method_32765Lnet/minecraft/class_2275;method_32765(Lnet/minecraft/class_3611;)Znamed canBeFilledByDripstoneLnet/minecraft/block/AbstractCauldronBlock;canBeFilledByDripstone(Lnet/minecraft/fluid/Fluid;)Z
-
getFluidHeight
- Overrides:
getFluidHeightin classAbstractCauldronBlock- Mappings:
Namespace Name Mixin selector official aLcim;a(Lcvo;)Dintermediary method_31615Lnet/minecraft/class_2275;method_31615(Lnet/minecraft/class_2680;)Dnamed getFluidHeightLnet/minecraft/block/AbstractCauldronBlock;getFluidHeight(Lnet/minecraft/block/BlockState;)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:
-
Block.onSteppedOn(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.Entity)AbstractBlock.onProjectileHit(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.hit.BlockHitResult, net.minecraft.entity.projectile.ProjectileEntity)
- Mappings:
Namespace Name Mixin selector official aLcvn;a(Lcvo;Lcgx;Lgt;Lbbn;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
onFireCollision
- Mappings:
Namespace Name Mixin selector official dLcns;d(Lcvo;Lcgx;Lgt;)Vintermediary method_36994Lnet/minecraft/class_5556;method_36994(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed onFireCollisionLnet/minecraft/block/LeveledCauldronBlock;onFireCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
decrementFluidLevel
- Mappings:
Namespace Name Mixin selector official eLcns;e(Lcvo;Lcgx;Lgt;)Vintermediary method_31650Lnet/minecraft/class_5556;method_31650(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed decrementFluidLevelLnet/minecraft/block/LeveledCauldronBlock;decrementFluidLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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 official aLcjt;a(Lcvo;Lcgx;Lgt;Lcht$c;)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;)Vnamed precipitationTickLnet/minecraft/block/Block;precipitationTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/Biome$Precipitation;)V
-
getComparatorOutput
Returns the comparator output of the block, from0to15.When overriding this,
AbstractBlock.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 official aLcvn;a(Lcvo;Lcgx;Lgt;)Iintermediary method_9572Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getComparatorOutputLnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)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 official aLcjt;a(Lcvp$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
fillFromDripstone
- Overrides:
fillFromDripstonein classAbstractCauldronBlock- Mappings:
Namespace Name Mixin selector official aLcim;a(Lcvo;Lcgx;Lgt;Ldpu;)Vintermediary method_32764Lnet/minecraft/class_2275;method_32764(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3611;)Vnamed fillFromDripstoneLnet/minecraft/block/AbstractCauldronBlock;fillFromDripstone(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/Fluid;)V
-