Package net.minecraft.core.cauldron
Interface CauldronInteraction
public interface CauldronInteraction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CauldronInteractionstatic final com.mojang.serialization.Codec<CauldronInteraction.InteractionMap> static final CauldronInteractionstatic final CauldronInteraction.InteractionMapstatic final CauldronInteractionstatic final CauldronInteractionstatic final CauldronInteractionstatic final Map<String, CauldronInteraction.InteractionMap> static final CauldronInteraction.InteractionMapstatic final CauldronInteraction.InteractionMapstatic final CauldronInteractionstatic final CauldronInteraction.InteractionMap -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultInteractions(Map<Item, CauldronInteraction> interactionsMap) static voidstatic ItemInteractionResultemptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static ItemInteractionResultfillBucket(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)
-