Interface PotInteraction
public interface PotInteraction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<net.minecraft.world.item.Item,PotInteraction> static final Map<net.minecraft.world.item.Item,PotInteraction> static final PotInteractionstatic final PotInteractionstatic final PotInteractionstatic final PotInteractionstatic final Map<net.minecraft.world.item.Item,PotInteraction> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultInteractions(Map<net.minecraft.world.item.Item, PotInteraction> map) static voidbootstrap(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) static net.minecraft.world.InteractionResultemptyPot(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand pHand, net.minecraft.world.item.ItemStack emptyStack, net.minecraft.world.item.ItemStack pFilledStack, Predicate<net.minecraft.world.level.block.state.BlockState> predicate, net.minecraft.sounds.SoundEvent pFillSound, boolean isLiquid) static net.minecraft.world.InteractionResultfillPot(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack filledStack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.sounds.SoundEvent soundEvent) static net.minecraft.world.InteractionResultfillPotFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack filledStack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.sounds.SoundEvent soundEvent) net.minecraft.world.InteractionResultinteract(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack) static it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap<net.minecraft.world.item.Item,PotInteraction>
-
Field Details
-
EMPTY
-
WATER
-
DIRT
-
FILL_WATER
-
FILL_DIRT
-
TAKE_DIRT
-
TAKE_WATER
-
-
Method Details
-
newInteractionMap
static it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap<net.minecraft.world.item.Item,PotInteraction> newInteractionMap() -
interact
net.minecraft.world.InteractionResult interact(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack) -
bootstrap
static void bootstrap(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) -
addDefaultInteractions
-
emptyPot
static net.minecraft.world.InteractionResult emptyPot(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand pHand, net.minecraft.world.item.ItemStack emptyStack, net.minecraft.world.item.ItemStack pFilledStack, Predicate<net.minecraft.world.level.block.state.BlockState> predicate, net.minecraft.sounds.SoundEvent pFillSound, boolean isLiquid) -
fillPotFluid
static net.minecraft.world.InteractionResult fillPotFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack filledStack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.sounds.SoundEvent soundEvent) -
fillPot
static net.minecraft.world.InteractionResult fillPot(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack filledStack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.sounds.SoundEvent soundEvent)
-