Class LeveledCauldronBlock

All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class LeveledCauldronBlock extends AbstractCauldronBlock
Constructs a leveled cauldron block.
Mappings:
Namespace Name
official day
intermediary net/minecraft/class_5556
named net/minecraft/block/LeveledCauldronBlock
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<LeveledCauldronBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lday;d:Lcom/mojang/serialization/MapCodec;
      intermediary field_46383 Lnet/minecraft/class_5556;field_46383:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/block/LeveledCauldronBlock;CODEC:Lcom/mojang/serialization/MapCodec;
    • MIN_LEVEL

      public static final int MIN_LEVEL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lday;e:I
      intermediary field_31107 Lnet/minecraft/class_5556;field_31107:I
      named MIN_LEVEL Lnet/minecraft/block/LeveledCauldronBlock;MIN_LEVEL:I
    • MAX_LEVEL

      public static final int MAX_LEVEL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lday;f:I
      intermediary field_31108 Lnet/minecraft/class_5556;field_31108:I
      named MAX_LEVEL Lnet/minecraft/block/LeveledCauldronBlock;MAX_LEVEL:I
    • LEVEL

      public static final IntProperty LEVEL
      Mappings:
      Namespace Name Mixin selector
      official g Lday;g:Ldkh;
      intermediary field_27206 Lnet/minecraft/class_5556;field_27206:Lnet/minecraft/class_2758;
      named LEVEL Lnet/minecraft/block/LeveledCauldronBlock;LEVEL:Lnet/minecraft/state/property/IntProperty;
    • BASE_FLUID_HEIGHT

      private static final int BASE_FLUID_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lday;h:I
      intermediary field_31109 Lnet/minecraft/class_5556;field_31109:I
      named BASE_FLUID_HEIGHT Lnet/minecraft/block/LeveledCauldronBlock;BASE_FLUID_HEIGHT:I
    • FLUID_HEIGHT_PER_LEVEL

      private static final double FLUID_HEIGHT_PER_LEVEL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lday;i:D
      intermediary field_31110 Lnet/minecraft/class_5556;field_31110:D
      named FLUID_HEIGHT_PER_LEVEL Lnet/minecraft/block/LeveledCauldronBlock;FLUID_HEIGHT_PER_LEVEL:D
    • precipitation

      private final Biome.Precipitation precipitation
      Mappings:
      Namespace Name Mixin selector
      official j Lday;j:Lcuo$c;
      intermediary field_46384 Lnet/minecraft/class_5556;field_46384:Lnet/minecraft/class_1959$class_1963;
      named precipitation Lnet/minecraft/block/LeveledCauldronBlock;precipitation:Lnet/minecraft/world/biome/Biome$Precipitation;
  • Constructor Details

    • LeveledCauldronBlock

      public LeveledCauldronBlock(Biome.Precipitation precipitation, CauldronBehavior.CauldronBehaviorMap behaviorMap, AbstractBlock.Settings settings)
      Constructs a leveled cauldron block.
      Mappings:
      Namespace Name Mixin selector
      official <init> Lday;<init>(Lcuo$c;Ljd$a;Ldjg$d;)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
      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
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<LeveledCauldronBlock> getCodec()
      Specified by:
      getCodec in class AbstractCauldronBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
    • isFull

      public boolean isFull(BlockState state)
      Returns true if the specified cauldron state is completely full, false otherwise.
      Specified by:
      isFull in class AbstractCauldronBlock
      Parameters:
      state - the cauldron state to check
      Returns:
      true if the specified cauldron state is completely full, false otherwise
      Mappings:
      Namespace Name Mixin selector
      official d Lcvj;d(Ldjh;)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
    • canBeFilledByDripstone

      protected boolean canBeFilledByDripstone(Fluid fluid)
      Checks if this cauldron block can be filled with the specified fluid by dripstone.
      Overrides:
      canBeFilledByDripstone in class AbstractCauldronBlock
      Parameters:
      fluid - the fluid to check
      Returns:
      true if this block can be filled, false otherwise
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a(Leeq;)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
    • getFluidHeight

      protected double getFluidHeight(BlockState state)
      Overrides:
      getFluidHeight in class AbstractCauldronBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcvj;b(Ldjh;)D
      intermediary method_31615 Lnet/minecraft/class_2275;method_31615(Lnet/minecraft/class_2680;)D
      named getFluidHeight Lnet/minecraft/block/AbstractCauldronBlock;getFluidHeight(Lnet/minecraft/block/BlockState;)D
    • onEntityCollision

      public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; use Block.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:

      Overrides:
      onEntityCollision in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a(Ldjh;Lctp;Lhx;Lblv;)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
      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
    • onFireCollision

      private void onFireCollision(BlockState state, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official e Lday;e(Ldjh;Lctp;Lhx;)V
      intermediary method_36994 Lnet/minecraft/class_5556;method_36994(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named onFireCollision Lnet/minecraft/block/LeveledCauldronBlock;onFireCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
    • decrementFluidLevel

      public static void decrementFluidLevel(BlockState state, World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lday;d(Ldjh;Lctp;Lhx;)V
      intermediary method_31650 Lnet/minecraft/class_5556;method_31650(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named decrementFluidLevel Lnet/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 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 Lcwq;a(Ldjh;Lctp;Lhx;Lcuo$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
    • getComparatorOutput

      public int getComparatorOutput(BlockState state, World world, BlockPos pos)
      Returns the comparator output of the block, from 0 to 15.

      When overriding this, AbstractBlock.hasComparatorOutput(net.minecraft.block.BlockState) must also be overridden.

      Overrides:
      getComparatorOutput in class AbstractBlock
      Returns:
      the comparator output of the block, from 0 to 15
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldjg;a(Ldjh;Lctp;Lhx;)I
      intermediary method_9572 Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
      named getComparatorOutput Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcwq;a(Ldji$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • fillFromDripstone

      protected void fillFromDripstone(BlockState state, World world, BlockPos pos, Fluid fluid)
      Fills a cauldron with one level of the specified fluid if possible.
      Overrides:
      fillFromDripstone in class AbstractCauldronBlock
      Parameters:
      state - the current cauldron state
      world - the world where the cauldron is located
      pos - the cauldron's position
      fluid - the fluid to fill the cauldron with
      Mappings:
      Namespace Name Mixin selector
      official a Lcvj;a(Ldjh;Lctp;Lhx;Leeq;)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