Class DataEvents

java.lang.Object
com.binaris.wizardry.core.DataEvents

public final class DataEvents extends Object
This class is used to save all the custom data events used in Electroblob's Wizardry, normally just including player tick and spell cast events.
See Also:
  • Method Details

    • onMinionTick

      public static void onMinionTick(EBLivingTick event)
    • onPlayerTick

      public static void onPlayerTick(EBLivingTick event)
    • onMinionJoinLevel

      public static void onMinionJoinLevel(EBEntityJoinLevelEvent event)
    • onPlayerInteractMinion

      public static void onPlayerInteractMinion(EBPlayerInteractEntityEvent event)
    • onConjureToss

      public static void onConjureToss(EBItemTossEvent event)
      Prevents conjured items from being thrown out of the inventory, as that would cause inconsistency on how the "temporal" item system should work.
    • onConjureEntityDeath

      public static void onConjureEntityDeath(EBLivingDeathEvent event)
      When a player dies, all conjured items in their inventory should be removed, as they are not "real" items and should not be thrown on the ground or kept in the inventory after death. This also prevents potential exploits with conjured items and death.
    • onConjureItemPlaceInContainer

      public static void onConjureItemPlaceInContainer(EBItemPlaceInContainerEvent event)
      Prevents conjured items from being placed in containers, as that would allow them to be stored indefinitely and potentially cause issues with the conjure item system. Conjured items should only exist in the player's inventory and should not be able to be stored in chests, hoppers, or other containers. This also prevents potential exploits with conjured items and container storage.
    • conjureItemTick

      public static void conjureItemTick(net.minecraft.world.entity.player.Player player)
      Every 5 ticks, checks the player's inventory for conjured items and expires them if their time has run out or if their durability is 0 or less. This includes the item currently being carried by the cursor.