public class LearnRecipeInteraction extends SimpleInstantInteraction
Class LearnRecipeInteraction. Provides learnrecipeinteraction functionality for the Hytale server.
java.lang.Object > SimpleInstantInteraction > LearnRecipeInteraction
Field Summary
itemId
protected
String
itemId
Field itemId.
commandBuffer
final
CommandBuffer
commandBuffer
Field commandBuffer.
ref
final
Ref
ref
Field ref.
playerRefComponent
final
PlayerRef
playerRefComponent
Field playerRefComponent.
inventory
final
ItemContainer
inventory
Field inventory.
itemInHand
final
ItemStack
itemInHand
Field itemInHand.
item
final
Item
item
Field item.
itemNameMessage
final
Message
itemNameMessage
Field itemNameMessage.
Method Detail
firstRun
protected
void
firstRun
(@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nonnull final CooldownHandler cooldownHandler)
Method firstRun.
- Parameters:
@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nonnull final CooldownHandlercooldownHandler
toString
public
String
toString
()
Method toString.
KeyedCodec
public
new
KeyedCodec
("ItemId", Codec.STRING)
Method KeyedCodec.
- Parameters:
"ItemId""ItemId"Codec.STRINGCodec.STRING