Class OnDynamicMovableRecipeEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnDynamicMovableRecipeEvent

public abstract class OnDynamicMovableRecipeEvent extends Event
Triggered when a dynamic recipe for a movable inventory item is being used.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting the event name
    abstract void
    handleEvent(zombie.inventory.types.Moveable moveable, zombie.scripting.objects.MovableRecipe movableRecipe, zombie.inventory.InventoryItem inventoryItem, zombie.characters.IsoGameCharacter character)
    Called Event Handling Method

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnDynamicMovableRecipeEvent

      public OnDynamicMovableRecipeEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(zombie.inventory.types.Moveable moveable, zombie.scripting.objects.MovableRecipe movableRecipe, zombie.inventory.InventoryItem inventoryItem, zombie.characters.IsoGameCharacter character)
      Called Event Handling Method
      Parameters:
      moveable - The movable object resulting from using the recipe.
      movableRecipe - The movable recipe that is being used.
      inventoryItem - The item from the player inventory.
      character - The character who's using the recipe.