2020-11-06 09:24:34 -05:00
|
|
|
CLASS net/minecraft/class_5620 net/minecraft/block/cauldron/CauldronBehavior
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Cauldron behaviors control what happens when a player interacts with
|
|
|
|
COMMENT cauldrons using a specific item.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>To register new cauldron behaviors, you can add them to the corresponding
|
|
|
|
COMMENT maps based on the cauldron type.
|
|
|
|
COMMENT <div class="fabric"><table>
|
|
|
|
COMMENT <caption>Behavior maps by cauldron type</caption>
|
|
|
|
COMMENT <thead><tr>
|
|
|
|
COMMENT <th>Type</th>
|
|
|
|
COMMENT <th>Block</th>
|
|
|
|
COMMENT <th>Behavior map</th>
|
|
|
|
COMMENT </tr></thead>
|
|
|
|
COMMENT <tbody>
|
|
|
|
COMMENT <tr>
|
|
|
|
COMMENT <td>Empty</td>
|
|
|
|
COMMENT <td>{@link net.minecraft.block.Blocks#CAULDRON minecraft:cauldron}</td>
|
|
|
|
COMMENT <td>{@link #EMPTY_CAULDRON_BEHAVIOR}</td>
|
|
|
|
COMMENT </tr>
|
|
|
|
COMMENT <tr>
|
|
|
|
COMMENT <td>Water</td>
|
|
|
|
COMMENT <td>{@link net.minecraft.block.Blocks#WATER_CAULDRON minecraft:water_cauldron}</td>
|
|
|
|
COMMENT <td>{@link #WATER_CAULDRON_BEHAVIOR}</td>
|
|
|
|
COMMENT </tr>
|
|
|
|
COMMENT <tr>
|
|
|
|
COMMENT <td>Lava</td>
|
|
|
|
COMMENT <td>{@link net.minecraft.block.Blocks#LAVA_CAULDRON minecraft:lava_cauldron}</td>
|
|
|
|
COMMENT <td>{@link #LAVA_CAULDRON_BEHAVIOR}</td>
|
|
|
|
COMMENT </tr>
|
|
|
|
COMMENT <tr>
|
|
|
|
COMMENT <td>Powder snow</td>
|
|
|
|
COMMENT <td>{@link net.minecraft.block.Blocks#POWDER_SNOW_CAULDRON minecraft:powder_snow_cauldron}</td>
|
|
|
|
COMMENT <td>{@link #POWDER_SNOW_CAULDRON_BEHAVIOR}</td>
|
|
|
|
COMMENT </tr>
|
|
|
|
COMMENT </tbody>
|
|
|
|
COMMENT </table></div>
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27775 EMPTY_CAULDRON_BEHAVIOR Ljava/util/Map;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT The cauldron behaviors for empty cauldrons.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #createMap
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27776 WATER_CAULDRON_BEHAVIOR Ljava/util/Map;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT The cauldron behaviors for water cauldrons.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #createMap
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27777 LAVA_CAULDRON_BEHAVIOR Ljava/util/Map;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT The cauldron behaviors for lava cauldrons.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #createMap
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27778 FILL_WITH_WATER Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that fills cauldrons with water.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #fillCauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27779 FILL_WITH_LAVA Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that fills cauldrons with lava.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #fillCauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27780 CLEAN_SHULKER_BOX Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that cleans dyed shulker boxes.
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27781 CLEAN_BANNER Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that cleans banners with patterns.
|
2020-11-06 09:24:34 -05:00
|
|
|
FIELD field_27782 CLEAN_DYEABLE_ITEM Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that cleans {@linkplain net.minecraft.item.DyeableItem dyeable items}.
|
2020-11-18 07:02:57 -05:00
|
|
|
FIELD field_28011 POWDER_SNOW_CAULDRON_BEHAVIOR Ljava/util/Map;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT The cauldron behaviors for powder snow cauldrons.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #createMap
|
2020-11-18 07:02:57 -05:00
|
|
|
FIELD field_28012 FILL_WITH_POWDER_SNOW Lnet/minecraft/class_5620;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT A behavior that fills cauldrons with powder snow.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #fillCauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
METHOD interact (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;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Called when a player interacts with a cauldron.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return a {@linkplain ActionResult#isAccepted successful} action result if this behavior succeeds,
|
|
|
|
COMMENT {@link ActionResult#PASS} otherwise
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 1 state
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the current cauldron block state
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 2 world
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the world where the cauldron is located
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 3 pos
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the cauldron's position
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 4 player
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the interacting player
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 5 hand
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the hand interacting with the cauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 6 stack
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the stack in the player's hand
|
2020-11-06 09:24:34 -05:00
|
|
|
METHOD method_32206 createMap ()Lit/unimi/dsi/fastutil/objects/Object2ObjectOpenHashMap;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Creates a mutable map from {@linkplain Item items} to their
|
|
|
|
COMMENT corresponding cauldron behaviors.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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
|
2020-11-11 14:27:23 -05:00
|
|
|
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;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Fills a cauldron from a bucket stack.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 0 world
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the world where the cauldron is located
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 1 pos
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the cauldron's position
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 2 player
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the interacting player
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 3 hand
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the hand interacting with the cauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 4 stack
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the filled bucket stack in the player's hand
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 5 state
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the filled cauldron state
|
2020-11-12 03:52:04 -05:00
|
|
|
ARG 6 soundEvent
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the sound produced by filling
|
2020-11-12 03:52:04 -05:00
|
|
|
METHOD method_32208 (Lnet/minecraft/class_2680;)Z
|
2023-06-20 18:11:48 -04:00
|
|
|
ARG 0 statex
|
2021-02-09 14:12:59 -05:00
|
|
|
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
|
2020-11-11 14:27:23 -05:00
|
|
|
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;
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Empties a cauldron if it's full.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return a {@linkplain ActionResult#isAccepted successful} action result if emptied, {@link ActionResult#PASS} otherwise
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 0 state
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the cauldron block state
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 1 world
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the world where the cauldron is located
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 2 pos
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the cauldron's position
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 3 player
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the interacting player
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 4 hand
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the hand interacting with the cauldron
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 5 stack
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the stack in the player's hand
|
2020-11-06 09:24:34 -05:00
|
|
|
ARG 6 output
|
2022-10-18 03:51:35 -04:00
|
|
|
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
|
2020-11-18 07:02:57 -05:00
|
|
|
ARG 8 soundEvent
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT the sound produced by emptying
|
2021-02-09 14:12:59 -05:00
|
|
|
METHOD method_32211 (Lit/unimi/dsi/fastutil/objects/Object2ObjectOpenHashMap;)V
|
|
|
|
ARG 0 map
|
2020-11-06 09:24:34 -05:00
|
|
|
METHOD method_32212 registerBehavior ()V
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Registers the vanilla cauldron behaviors.
|
2021-02-09 14:12:59 -05:00
|
|
|
METHOD method_32213 (Lnet/minecraft/class_2680;)Z
|
2023-06-20 18:11:48 -04:00
|
|
|
ARG 0 statex
|
2021-02-09 14:12:59 -05:00
|
|
|
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
|
2020-11-12 03:52:04 -05:00
|
|
|
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
|
2021-02-09 14:12:59 -05:00
|
|
|
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
|
2020-11-12 03:52:04 -05:00
|
|
|
METHOD method_32696 (Lnet/minecraft/class_2680;)Z
|
2023-06-20 18:11:48 -04:00
|
|
|
ARG 0 statex
|
2021-02-09 14:12:59 -05:00
|
|
|
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
|
2020-11-12 03:52:04 -05:00
|
|
|
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
|
2021-03-25 08:44:47 -04:00
|
|
|
METHOD method_34850 registerBucketBehavior (Ljava/util/Map;)V
|
2022-10-18 03:51:35 -04:00
|
|
|
COMMENT Registers the behavior for filled buckets in the specified behavior map.
|
2021-03-25 08:44:47 -04:00
|
|
|
ARG 0 behavior
|