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> pInteractionsMap) static voidstatic ItemInteractionResultemptyBucket(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound) static ItemInteractionResultfillBucket(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) interact(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) newInteractionMap(String pName)
-
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 pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pStack) -
bootStrap
static void bootStrap() -
addDefaultInteractions
-
fillBucket
static ItemInteractionResult fillBucket(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pEmptyStack, ItemStack pFilledStack, Predicate<BlockState> pStatePredicate, SoundEvent pFillSound) -
emptyBucket
static ItemInteractionResult emptyBucket(Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, ItemStack pFilledStack, BlockState pState, SoundEvent pEmptySound)
-