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.InteractionMap
static final Map
<String, CauldronInteraction.InteractionMap> static final CauldronInteraction.InteractionMap
static final CauldronInteraction.InteractionMap
static final CauldronInteraction.InteractionMap
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDefaultInteractions
(Map<Item, CauldronInteraction> p_175648_) private static InteractionResult
bannerInteraction
(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) static void
private static InteractionResult
dyedItemIteration
(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) static InteractionResult
emptyBucket
(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static InteractionResult
fillBucket
(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) private static InteractionResult
fillLavaInteraction
(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) private static InteractionResult
fillPowderSnowInteraction
(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) private static InteractionResult
fillWaterInteraction
(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) interact
(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) private static boolean
isUnderWater
(Level p_364930_, BlockPos p_363494_) newInteractionMap
(String p_304841_) private static InteractionResult
shulkerBoxInteraction
(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_)
-
Field Details
-
INTERACTIONS
-
CODEC
-
EMPTY
-
WATER
-
LAVA
-
POWDER_SNOW
-
-
Method Details
-
newInteractionMap
-
interact
InteractionResult interact(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) -
bootStrap
static void bootStrap() -
addDefaultInteractions
-
fillBucket
static InteractionResult fillBucket(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) -
emptyBucket
static InteractionResult emptyBucket(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) -
fillWaterInteraction
private static InteractionResult fillWaterInteraction(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) -
fillLavaInteraction
private static InteractionResult fillLavaInteraction(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) -
fillPowderSnowInteraction
private static InteractionResult fillPowderSnowInteraction(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) -
shulkerBoxInteraction
private static InteractionResult shulkerBoxInteraction(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_) -
bannerInteraction
private static InteractionResult bannerInteraction(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) -
dyedItemIteration
private static InteractionResult dyedItemIteration(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) -
isUnderWater
-