Package com.binaris.wizardry.core
Class DataEvents
java.lang.Object
com.binaris.wizardry.core.DataEvents
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 Summary
Modifier and TypeMethodDescriptionstatic voidconjureItemTick(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.static voidWhen 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.static voidPrevents 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.static voidonConjureToss(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.static voidstatic voidonMinionTick(EBLivingTick event) static voidstatic voidonPlayerTick(EBLivingTick event)
-
Method Details
-
onMinionTick
-
onPlayerTick
-
onMinionJoinLevel
-
onPlayerInteractMinion
-
onConjureToss
Prevents conjured items from being thrown out of the inventory, as that would cause inconsistency on how the "temporal" item system should work. -
onConjureEntityDeath
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
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.
-