Module gomint.api

Interface EntityXPOrb

  • All Superinterfaces:
    Entity

    public interface EntityXPOrb
    extends Entity
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • create

        static EntityXPOrb create()
        Create a new entity xp orb with no config
        Returns:
        empty, fresh xp orb
      • setPickupDelay

        void setPickupDelay​(long duration,
                            TimeUnit timeUnit)
        Set a new pickup delay
        Parameters:
        duration - the amount of timeUnit to wait
        timeUnit - the unit of time to wait
      • getPickupTime

        long getPickupTime()
        Get the time when the item drop is allowed to be picked up
        Returns:
        the unix timestamp in millis when the item drop can be picked up
      • setXpAmount

        void setXpAmount​(int xpAmount)
        Set new xp amount
        Parameters:
        xpAmount - which should be used when collected
      • getXpAmount

        int getXpAmount()
        Amount of XP currently in this orb
        Returns:
        xp in this orb