CLASS net/minecraft/class_5620 net/minecraft/block/cauldron/CauldronBehavior COMMENT Cauldron behaviors control what happens when a player interacts with COMMENT cauldrons using a specific item. COMMENT COMMENT
To register new cauldron behaviors, you can add them to the corresponding COMMENT maps based on the cauldron type. COMMENT
Type | COMMENTBlock | COMMENTBehavior map | COMMENT
---|---|---|
Empty | COMMENT{@link net.minecraft.block.Blocks#CAULDRON minecraft:cauldron} | COMMENT{@link #EMPTY_CAULDRON_BEHAVIOR} | COMMENT
Water | COMMENT{@link net.minecraft.block.Blocks#WATER_CAULDRON minecraft:water_cauldron} | COMMENT{@link #WATER_CAULDRON_BEHAVIOR} | COMMENT
Lava | COMMENT{@link net.minecraft.block.Blocks#LAVA_CAULDRON minecraft:lava_cauldron} | COMMENT{@link #LAVA_CAULDRON_BEHAVIOR} | COMMENT
Powder snow | COMMENT{@link net.minecraft.block.Blocks#POWDER_SNOW_CAULDRON minecraft:powder_snow_cauldron} | COMMENT{@link #POWDER_SNOW_CAULDRON_BEHAVIOR} | COMMENT
The default return value in the map is a cauldron behavior COMMENT that returns {@link ActionResult#PASS} for all items. COMMENT COMMENT @return the created map METHOD method_32207 fillCauldron (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_3414;)Lnet/minecraft/class_1269; COMMENT Fills a cauldron from a bucket stack. COMMENT COMMENT
The filled bucket stack will be replaced by an empty bucket in the player's COMMENT inventory. COMMENT COMMENT @return a {@linkplain ActionResult#isAccepted successful} action result ARG 0 world COMMENT the world where the cauldron is located ARG 1 pos COMMENT the cauldron's position ARG 2 player COMMENT the interacting player ARG 3 hand COMMENT the hand interacting with the cauldron ARG 4 stack COMMENT the filled bucket stack in the player's hand ARG 5 state COMMENT the filled cauldron state ARG 6 soundEvent COMMENT the sound produced by filling METHOD method_32208 (Lnet/minecraft/class_2680;)Z ARG 0 statex METHOD method_32209 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32210 emptyCauldron (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;Ljava/util/function/Predicate;Lnet/minecraft/class_3414;)Lnet/minecraft/class_1269; COMMENT Empties a cauldron if it's full. COMMENT COMMENT @return a {@linkplain ActionResult#isAccepted successful} action result if emptied, {@link ActionResult#PASS} otherwise ARG 0 state COMMENT the cauldron block state ARG 1 world COMMENT the world where the cauldron is located ARG 2 pos COMMENT the cauldron's position ARG 3 player COMMENT the interacting player ARG 4 hand COMMENT the hand interacting with the cauldron ARG 5 stack COMMENT the stack in the player's hand ARG 6 output COMMENT the item stack that replaces the interaction stack when the cauldron is emptied ARG 7 fullPredicate COMMENT a predicate used to check if the cauldron can be emptied into the output stack ARG 8 soundEvent COMMENT the sound produced by emptying METHOD method_32211 (Lit/unimi/dsi/fastutil/objects/Object2ObjectOpenHashMap;)V ARG 0 map METHOD method_32212 registerBehavior ()V COMMENT Registers the vanilla cauldron behaviors. METHOD method_32213 (Lnet/minecraft/class_2680;)Z ARG 0 statex METHOD method_32214 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32215 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32216 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32217 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32218 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32219 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32220 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32221 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32222 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32223 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32696 (Lnet/minecraft/class_2680;)Z ARG 0 statex METHOD method_32697 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_32698 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1269; ARG 0 state ARG 1 world ARG 2 pos ARG 3 player ARG 4 hand ARG 5 stack METHOD method_34850 registerBucketBehavior (Ljava/util/Map;)V COMMENT Registers the behavior for filled buckets in the specified behavior map. ARG 0 behavior