Class CauldronInteractions
java.lang.Object
net.minecraft.core.cauldron.CauldronInteractions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<CauldronInteraction.Dispatcher> static final CauldronInteraction.Dispatcherprivate static final ExtraCodecs.LateBoundIdMapper<String, CauldronInteraction.Dispatcher> static final CauldronInteraction.Dispatcherstatic final CauldronInteraction.Dispatcherstatic final CauldronInteraction.Dispatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddDefaultInteractions(CauldronInteraction.Dispatcher 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) (package private) static InteractionResultemptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand, BlockState newState, SoundEvent soundEvent) (package private) 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) private static booleanisUnderWater(Level level, BlockPos pos) private static CauldronInteraction.DispatchernewDispatcher(String name) private static InteractionResultshulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack itemInHand)
-
Field Details
-
ID_MAPPER
private static final ExtraCodecs.LateBoundIdMapper<String, CauldronInteraction.Dispatcher> ID_MAPPER -
CODEC
-
EMPTY
-
WATER
-
LAVA
-
POWDER_SNOW
-
-
Constructor Details
-
CauldronInteractions
public CauldronInteractions()
-
-
Method Details
-
newDispatcher
-
bootStrap
public 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
-