Interface IPlayer<T extends net.minecraft.entity.player.EntityPlayerMP>

    • Method Detail

      • getDisplayName

        java.lang.String getDisplayName()
        Returns:
        Returns the displayed name of the player
      • getName

        java.lang.String getName()
        Returns:
        Returns the players name
      • kick

        void kick​(java.lang.String reason)
      • setPosition

        void setPosition​(double x,
                         double y,
                         double z)
        Specified by:
        setPosition in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
        Parameters:
        x - The x position
        y - The y position
        z - The z position
      • setPosition

        void setPosition​(IPos pos)
        Specified by:
        setPosition in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
      • setPosition

        void setPosition​(double x,
                         double y,
                         double z,
                         int dimensionId)
      • setPosition

        void setPosition​(IPos pos,
                         int dimensionId)
      • setPosition

        void setPosition​(double x,
                         double y,
                         double z,
                         IWorld world)
      • setPosition

        void setPosition​(IPos pos,
                         IWorld world)
      • setDimension

        void setDimension​(int dimension)
        Specified by:
        setDimension in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
      • getHunger

        int getHunger()
      • setHunger

        void setHunger​(int hunger)
      • getSaturation

        float getSaturation()
      • setSaturation

        void setSaturation​(float saturation)
      • showDialog

        void showDialog​(IDialog dialog)
      • hasReadDialog

        boolean hasReadDialog​(IDialog dialog)
      • readDialog

        void readDialog​(IDialog dialog)
      • unreadDialog

        void unreadDialog​(IDialog dialog)
      • showDialog

        void showDialog​(int id)
      • hasReadDialog

        boolean hasReadDialog​(int id)
      • readDialog

        void readDialog​(int id)
      • unreadDialog

        void unreadDialog​(int id)
      • hasFinishedQuest

        boolean hasFinishedQuest​(IQuest quest)
      • hasActiveQuest

        boolean hasActiveQuest​(IQuest quest)
      • startQuest

        void startQuest​(IQuest quest)
        Add the quest from active quest list
        Parameters:
        quest - The quest
      • finishQuest

        void finishQuest​(IQuest quest)
        Add the quest from finished quest list
        Parameters:
        quest - The quest
      • stopQuest

        void stopQuest​(IQuest quest)
        Removes the quest from active quest list
        Parameters:
        quest - The quest
      • removeQuest

        void removeQuest​(IQuest quest)
        Removes the quest from active and finished quest list
        Parameters:
        quest - The quest
      • hasFinishedQuest

        boolean hasFinishedQuest​(int id)
      • hasActiveQuest

        boolean hasActiveQuest​(int id)
      • startQuest

        void startQuest​(int id)
        Parameters:
        id - The quest ID
      • finishQuest

        void finishQuest​(int id)
        Parameters:
        id - The quest ID
      • stopQuest

        void stopQuest​(int id)
        Parameters:
        id - The quest ID
      • removeQuest

        void removeQuest​(int id)
        Parameters:
        id - The quest ID
      • getFinishedQuests

        IQuest[] getFinishedQuests()
      • getType

        int getType()
        Specified by:
        getType in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
        Specified by:
        getType in interface IEntityLivingBase<T extends net.minecraft.entity.player.EntityPlayerMP>
        Returns:
        Returns the EntityType of this entity
        See Also:
        EntityType
      • typeOf

        boolean typeOf​(int type)
        Specified by:
        typeOf in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
        Specified by:
        typeOf in interface IEntityLivingBase<T extends net.minecraft.entity.player.EntityPlayerMP>
        Returns:
        Returns whether the entity is type of the given @EntityType
      • addFactionPoints

        void addFactionPoints​(int faction,
                              int points)
        Parameters:
        faction - The faction id
        points - The points to increase. Use negative values to decrease
      • setFactionPoints

        void setFactionPoints​(int faction,
                              int points)
        Parameters:
        faction - The faction id
        points - The new point value for this faction
      • getFactionPoints

        int getFactionPoints​(int faction)
        Parameters:
        faction - The faction id
        Returns:
        points
      • sendMessage

        void sendMessage​(java.lang.String message)
        Parameters:
        message - The message you want to send. Compatible with formatting codes, which can be found on the attached link.
        See Also:
        Minecraft formatting codes
      • getMode

        int getMode()
        Returns:
        Return gamemode. 0: Survival, 1: Creative, 2: Adventure
      • setMode

        void setMode​(int type)
        Parameters:
        type - The gamemode type. 0:SURVIVAL, 1:CREATIVE, 2:ADVENTURE
      • getInventory

        IItemStack[] getInventory()
        Returns:
        Returns a IItemStack array size 36
        Since:
        1.7.10d
      • inventoryItemCount

        int inventoryItemCount​(IItemStack item,
                               boolean ignoreNBT,
                               boolean ignoreDamage)
        Parameters:
        item - The item to be checked
        ignoreNBT - Whether the item's NBT tags will be checked to be equal
        ignoreDamage - Whether the item's damage will be checked to be equal
        Returns:
        How many of this item the player has
      • removeItem

        boolean removeItem​(java.lang.String id,
                           int damage,
                           int amount)
        Parameters:
        id - The items name
        damage - The damage value
        amount - How many will be removed
        Returns:
        True if the items were removed succesfully. Returns false incase a bigger amount than what the player has was given or item doesnt exist
        Since:
        1.7.10c
      • removeItem

        boolean removeItem​(IItemStack item,
                           int amount,
                           boolean ignoreNBT,
                           boolean ignoreDamage)
        Parameters:
        item - The Item type to be removed
        amount - How many will be removed
        ignoreNBT - Whether the item's NBT tags will be checked to be equal
        ignoreDamage - Whether the item's damage will be checked to be equal
        Returns:
        True if the items were removed succesfully. Returns false incase a bigger amount than what the player has was given
      • removeAllItems

        int removeAllItems​(IItemStack item,
                           boolean ignoreNBT,
                           boolean ignoreDamage)
        Parameters:
        item - The item to be removed from the players inventory
        ignoreNBT - Whether the item's NBT tags will be checked to be equal
        ignoreDamage - Whether the item's damage will be checked to be equal
        Returns:
        The amount of item stacks that were removed
      • giveItem

        boolean giveItem​(IItemStack item,
                         int amount)
        Parameters:
        item - Item to be added
        amount - The amount of the item to be added
        Returns:
        Returns whether or not it gave the item succesfully
        Since:
        1.7.10c
      • giveItem

        boolean giveItem​(java.lang.String id,
                         int damage,
                         int amount)
        Parameters:
        id - The items name
        damage - The damage value
        amount - The amount of the item to be added
        Returns:
        Returns whether or not it gave the item succesfully
        Since:
        1.7.10c
      • setSpawnpoint

        void setSpawnpoint​(int x,
                           int y,
                           int z)
        Same as the /spawnpoint command
        Parameters:
        x - The x position
        y - The y position
        z - The z position
      • setSpawnpoint

        void setSpawnpoint​(IPos pos)
      • resetSpawnpoint

        void resetSpawnpoint()
      • setRotation

        void setRotation​(float rotationYaw,
                         float rotationPitch)
        Specified by:
        setRotation in interface IEntity<T extends net.minecraft.entity.player.EntityPlayerMP>
      • disableMouseInput

        void disableMouseInput​(long time,
                               int... buttonIds)
      • stopUsingItem

        void stopUsingItem()
      • clearItemInUse

        void clearItemInUse()
      • clearInventory

        void clearInventory()
      • playSound

        void playSound​(java.lang.String name,
                       float volume,
                       float pitch)
      • playSound

        void playSound​(int id,
                       ISound sound)
      • playSound

        void playSound​(ISound sound)
      • stopSound

        void stopSound​(int id)
      • pauseSounds

        void pauseSounds()
      • continueSounds

        void continueSounds()
      • stopSounds

        void stopSounds()
      • mountEntity

        void mountEntity​(net.minecraft.entity.Entity ridingEntity)
      • dropOneItem

        IEntity dropOneItem​(boolean dropStack)
      • canHarvestBlock

        boolean canHarvestBlock​(IBlock block)
      • interactWith

        boolean interactWith​(IEntity entity)
      • hasAchievement

        boolean hasAchievement​(java.lang.String achievement)
        Parameters:
        achievement - The achievement id. For a complete list see http://minecraft.wiki/w/Achievements
        Returns:
        Returns whether or not the player has this achievement
      • hasBukkitPermission

        boolean hasBukkitPermission​(java.lang.String permission)
        Parameters:
        permission - Bukkit/Cauldron permission
        Returns:
        Returns whether or not the player has the permission
      • getExpLevel

        int getExpLevel()
        Returns:
        Returns the exp level
        Since:
        1.7.10c
      • setExpLevel

        void setExpLevel​(int level)
        Parameters:
        level - The new exp level you want to set
        Since:
        1.7.10c
      • getPixelmonData

        IPixelmonPlayerData getPixelmonData()
        Requires pixelmon to be installed
        Since:
        1.7.10d
      • updatePlayerInventory

        void updatePlayerInventory()
      • blocking

        boolean blocking()
      • isScriptingDev

        boolean isScriptingDev()
      • getActiveQuests

        IQuest[] getActiveQuests()
      • showCustomGui

        void showCustomGui​(ICustomGui gui)
      • closeGui

        void closeGui()
      • showCustomOverlay

        void showCustomOverlay​(ICustomOverlay overlay)
      • closeOverlay

        void closeOverlay​(int id)
      • setConqueredEnd

        void setConqueredEnd​(boolean conqueredEnd)
      • conqueredEnd

        boolean conqueredEnd()