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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RelearnerInteractionResult>protected net.minecraft.world.item.ItemStackFields inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
codec -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRelearnerInteractionResult(net.minecraft.world.item.ItemStack cost) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCost(net.minecraft.world.item.ItemStack hand) voidhandle(InteractionContext context) Handles the result using the given contextstatic RelearnerInteractionResultof(net.minecraft.world.item.ItemStack cost) Methods inherited from class com.pixelmonmod.pixelmon.api.npc.interaction.result.ImmutableInteractionResult
codecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.npc.interaction.result.InteractionResult
canExecute, fill, inputTypes
-
Field Details
-
CODEC
-
cost
protected net.minecraft.world.item.ItemStack cost
-
-
Constructor Details
-
RelearnerInteractionResult
protected RelearnerInteractionResult(net.minecraft.world.item.ItemStack cost)
-
-
Method Details
-
of
-
handle
Description copied from interface:InteractionResultHandles the result using the given context- Parameters:
context- The context
-
checkCost
public boolean checkCost(net.minecraft.world.item.ItemStack hand)
-