Package net.minecraft.core.cauldron
Interface CauldronInteraction
public interface CauldronInteraction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CauldronInteraction
static final com.mojang.serialization.Codec
<CauldronInteraction.InteractionMap> static final CauldronInteraction
static final CauldronInteraction.InteractionMap
static final CauldronInteraction
static final CauldronInteraction
static final CauldronInteraction
static final Map
<String, CauldronInteraction.InteractionMap> static final CauldronInteraction.InteractionMap
static final CauldronInteraction.InteractionMap
static final CauldronInteraction
static final CauldronInteraction.InteractionMap
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDefaultInteractions
(Map<Item, CauldronInteraction> interactionsMap) static void
static ItemInteractionResult
emptyBucket
(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResult
fillBucket
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) interact
(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) newInteractionMap
(String name)
-
Field Details
-
INTERACTIONS
-
CODEC
-
EMPTY
-
WATER
-
LAVA
-
POWDER_SNOW
-
FILL_WATER
-
FILL_LAVA
-
FILL_POWDER_SNOW
-
SHULKER_BOX
-
BANNER
-
DYED_ITEM
-
-
Method Details
-
newInteractionMap
-
interact
ItemInteractionResult interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
bootStrap
static void bootStrap() -
addDefaultInteractions
-
fillBucket
static ItemInteractionResult fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) -
emptyBucket
static ItemInteractionResult emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound)
-