Class RelearnerInteractionResult

java.lang.Object
com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
com.pixelmonmod.pixelmon.api.npc.interaction.result.type.RelearnerInteractionResult
All Implemented Interfaces:
InteractionResult

public class RelearnerInteractionResult extends ImmutableInteractionResult
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<RelearnerInteractionResult> CODEC
    • cost

      protected net.minecraft.world.item.ItemStack cost
  • Constructor Details

    • RelearnerInteractionResult

      protected RelearnerInteractionResult(net.minecraft.world.item.ItemStack cost)
  • Method Details

    • of

      public static RelearnerInteractionResult of(net.minecraft.world.item.ItemStack cost)
    • handle

      public void handle(InteractionContext context)
      Description copied from interface: InteractionResult
      Handles the result using the given context
      Parameters:
      context - The context
    • checkCost

      public boolean checkCost(net.minecraft.world.item.ItemStack hand)