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> interactionMap) private static InteractionResultbannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) static voidprivate static InteractionResultdyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) static InteractionResultemptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, BlockState newState, SoundEvent soundEvent) static InteractionResultfillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, ItemStack newItem, Predicate<BlockState> canFill, SoundEvent soundEvent) private static InteractionResultfillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultfillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static InteractionResultfillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) private static booleanisUnderWater(Level level, BlockPos pos) newInteractionMap(String name) private static InteractionResultshulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand)
-
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 itemInHand) -
bootStrap
static void bootStrap() -
addDefaultInteractions
-
fillBucket
static InteractionResult fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, ItemStack newItem, Predicate<BlockState> canFill, SoundEvent soundEvent) -
emptyBucket
static InteractionResult emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, BlockState newState, SoundEvent soundEvent) -
fillWaterInteraction
private static InteractionResult fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
fillLavaInteraction
private static InteractionResult fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
fillPowderSnowInteraction
private static InteractionResult fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
shulkerBoxInteraction
private static InteractionResult shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
bannerInteraction
private static InteractionResult bannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
dyedItemIteration
private static InteractionResult dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand) -
isUnderWater
-