Class PylonItem

  • All Implemented Interfaces:
    net.kyori.adventure.key.Keyed , org.bukkit.Keyed

    
    public class PylonItem
     implements Keyed
                        

    PylonItems are wrappers around ItemStacks that allow you to easily add extra functionality.

    Unlike PylonBlock and PylonEntity, PylonItem isn't persisted in memory, so you should avoid storing any fields in your PylonItem classes. Instead, use the stack's PersistentDataContainer to store data persistently.

    An implementation of PylonItem must have a constructor that takes an ItemStack as its only parameter. This will be used to load an in-world ItemStack as this particular PylonItem class.