Module gomint.api

Interface EntityHuman

    • Method Detail

      • create

        static EntityHuman create()
        Create a new entity human with no config
        Returns:
        empty, fresh human
      • getName

        String getName()
        Gets the name of the player. It is NOT globally unique since the player can change it inside the Client. Yet it is unique for all players on the same server.
        Returns:
        The name player's name
      • getUUID

        UUID getUUID()
        Gets the player's UUID. It has yet to be researched how unique this one is as it may be specified by the player during the login sequence.
        Returns:
        The player's UUID.
      • getSkin

        PlayerSkin getSkin()
        Get the skin of a player. This is readonly access currently since we figure out how to change the skin.
        Returns:
        skin which the client has sent on login
      • setSkin

        void setSkin​(PlayerSkin skin)
        Set the skin of this human
        Parameters:
        skin - which should be set
      • getDisplayName

        String getDisplayName()
        Get the name which is listed in the tablist (displayName)
        Returns:
        display name
      • setDisplayName

        void setDisplayName​(String displayName)
        Set a new display name
        Parameters:
        displayName - which should be used
      • getXboxID

        String getXboxID()
        Get the unique XBOX live id. Is empty string if not in xbox live mode
        Returns:
        xbox live id or empty string
      • getInventory

        PlayerInventory getInventory()
        Get the players inventory
        Returns:
        players inventory
      • setHunger

        void setHunger​(float amount)
        Set hunger level
        Parameters:
        amount - of hunger
      • getHunger

        float getHunger()
        Get the hunger level
        Returns:
        hunger level
      • setSaturation

        void setSaturation​(float amount)
        Set saturation level
        Parameters:
        amount - of saturation
      • getSaturation

        float getSaturation()
        Get the saturation level
        Returns:
        saturation level
      • setSneaking

        void setSneaking​(boolean value)
        Set player sneaking or not
        Parameters:
        value - true for sneaking, false for not sneaking
      • isSneaking

        boolean isSneaking()
        Is this player sneaking?
        Returns:
        true when sneaking, false when not
      • setSprinting

        void setSprinting​(boolean value)
        Set player sprinting or not
        Parameters:
        value - true for sprinting, false for not sprinting
      • isSprinting

        boolean isSprinting()
        Check if entity is sprinting
        Returns:
        true when sprinting, false when not
      • setSwimming

        void setSwimming​(boolean value)
        Set player swimming or not
        Parameters:
        value - true for swimming, false for not swimming
      • isSwimming

        boolean isSwimming()
        Check if entity is swimming
        Returns:
        true when swimming, false when not
      • setSpinning

        void setSpinning​(boolean value)
        Set player spinning or not
        Parameters:
        value - true for spinning, false for not spinning
      • isSpinning

        boolean isSpinning()
        Check if entity is spinning
        Returns:
        true when spinning, false when not
      • getPlayerListName

        String getPlayerListName()
        Get the current player list name
        Returns:
        entry of the player list
      • setPlayerListName

        void setPlayerListName​(String newPlayerListName)
        Set a new player list name. This auto updates for players.
        Parameters:
        newPlayerListName - new player list name