Class CauldronBlock

All Implemented Interfaces:
ItemConvertible

public class CauldronBlock extends AbstractCauldronBlock
Mappings:
Namespace Name
official ckl
intermediary net/minecraft/class_5546
named net/minecraft/block/CauldronBlock
  • Field Details

    • FILL_WITH_RAIN_CHANCE

      private static final float FILL_WITH_RAIN_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lckl;c:F
      intermediary field_34027 Lnet/minecraft/class_5546;field_34027:F
      named FILL_WITH_RAIN_CHANCE Lnet/minecraft/block/CauldronBlock;FILL_WITH_RAIN_CHANCE:F
    • FILL_WITH_SNOW_CHANCE

      private static final float FILL_WITH_SNOW_CHANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lckl;d:F
      intermediary field_34028 Lnet/minecraft/class_5546;field_34028:F
      named FILL_WITH_SNOW_CHANCE Lnet/minecraft/block/CauldronBlock;FILL_WITH_SNOW_CHANCE:F
  • Constructor Details

    • CauldronBlock

      public CauldronBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcvn;<init>(Lcvn$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • isFull

      public boolean isFull(BlockState state)
      Specified by:
      isFull in class AbstractCauldronBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lcim;c(Lcvo;)Z
      intermediary method_32766 Lnet/minecraft/class_2275;method_32766(Lnet/minecraft/class_2680;)Z
      named isFull Lnet/minecraft/block/AbstractCauldronBlock;isFull(Lnet/minecraft/block/BlockState;)Z
    • canFillWithPrecipitation

      protected static boolean canFillWithPrecipitation(World world, Biome.Precipitation precipitation)
      Mappings:
      Namespace Name Mixin selector
      official a Lckl;a(Lcgx;Lcht$c;)Z
      intermediary method_31636 Lnet/minecraft/class_5546;method_31636(Lnet/minecraft/class_1937;Lnet/minecraft/class_1959$class_1963;)Z
      named canFillWithPrecipitation Lnet/minecraft/block/CauldronBlock;canFillWithPrecipitation(Lnet/minecraft/world/World;Lnet/minecraft/world/biome/Biome$Precipitation;)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 the randomTickSpeed game rule, and AbstractBlock.Settings.ticksRandomly() block setting is not required.

      LeveledCauldronBlock uses this to fill the cauldron.

      Overrides:
      precipitationTick in class Block
      Parameters:
      precipitation - the precipitation (snow or rain), including snow observable on high altitude
      Mappings:
      Namespace Name Mixin selector
      official a Lcjt;a(Lcvo;Lcgx;Lgt;Lcht$c;)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
      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
    • canBeFilledByDripstone

      protected boolean canBeFilledByDripstone(Fluid fluid)
      Overrides:
      canBeFilledByDripstone in class AbstractCauldronBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcim;a(Ldpu;)Z
      intermediary method_32765 Lnet/minecraft/class_2275;method_32765(Lnet/minecraft/class_3611;)Z
      named canBeFilledByDripstone Lnet/minecraft/block/AbstractCauldronBlock;canBeFilledByDripstone(Lnet/minecraft/fluid/Fluid;)Z
    • fillFromDripstone

      protected void fillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid)
      Overrides:
      fillFromDripstone in class AbstractCauldronBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcim;a(Lcvo;Lcgx;Lgt;Ldpu;)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
      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