Package net.minecraft.core.cauldron
Interface CauldronInteraction
public interface CauldronInteraction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CauldronInteraction.InteractionMap> static final CauldronInteraction.InteractionMapstatic final Map<String, CauldronInteraction.InteractionMap> static final CauldronInteraction.InteractionMapstatic final CauldronInteraction.InteractionMapstatic final CauldronInteraction.InteractionMap -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultInteractions(Map<Item, CauldronInteraction> interactionsMap) private static InteractionResultbannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) static voidprivate static InteractionResultdyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) static InteractionResultemptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStackl, BlockState state, SoundEvent emptySound) static InteractionResultfillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) private static InteractionResultfillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultfillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultfillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) private static booleanisUnderWater(Level level, BlockPos pos) newInteractionMap(String name) private static InteractionResultshulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack)
-
Field Details
-
INTERACTIONS
-
CODEC
-
EMPTY
-
WATER
-
LAVA
-
POWDER_SNOW
-
-
Method Details
-
newInteractionMap
-
interact
InteractionResult interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
bootStrap
static void bootStrap() -
addDefaultInteractions
-
fillBucket
static InteractionResult fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) -
emptyBucket
static InteractionResult emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStackl, BlockState state, SoundEvent emptySound) -
fillWaterInteraction
private static InteractionResult fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) -
fillLavaInteraction
private static InteractionResult fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) -
fillPowderSnowInteraction
private static InteractionResult fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) -
shulkerBoxInteraction
private static InteractionResult shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
bannerInteraction
private static InteractionResult bannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
dyedItemIteration
private static InteractionResult dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
isUnderWater
-