Interface CTCauldronInteraction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@ZenRegister @FunctionalInterface public interface CTCauldronInteraction
Fired when a Cauldron is interacted with.
DocParam:
this (blockState, level, pos, player, hand, stack) => invalid input: '<'constant:minecraft:world/interactionresult:success>
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.ItemInteractionResult
    interact(net.minecraft.world.level.block.state.BlockState blockState, 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)
    Called when a Cauldron is interacted with.
  • Method Details

    • interact

      net.minecraft.world.ItemInteractionResult interact(net.minecraft.world.level.block.state.BlockState blockState, 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)
      Called when a Cauldron is interacted with.
      Parameters:
      blockState - The blockstate of the cauldron.
      level - The current level.
      pos - The position of the cauldron.
      player - The player that interacted.
      hand - The hand that was used to interact
      stack - The stack that was used to interact
      Returns:
      An InteractionResult of what should happen.