Class DisguiseAPI

java.lang.Object
me.libraryaddict.disguise.DisguiseAPI

public class DisguiseAPI extends Object
  • Method Details

    • getEntityAttachmentId

      public static int getEntityAttachmentId()
    • addCustomDisguise

      public static void addCustomDisguise(String disguiseName, String disguiseInfo) throws DisguiseParseException
      Throws:
      DisguiseParseException
    • addGameProfile

      public static void addGameProfile(String profileName, com.github.retrooper.packetevents.protocol.player.UserProfile gameProfile)
    • getRawCustomDisguise

      public static String getRawCustomDisguise(String disguiseName)
    • getCustomDisguise

      public static Disguise getCustomDisguise(String disguiseName)
    • removeCustomDisguise

      public static void removeCustomDisguise(String disguiseName)
    • constructDisguise

      public static Disguise constructDisguise(org.bukkit.entity.Entity entity)
    • constructDisguise

      public static Disguise constructDisguise(org.bukkit.entity.Entity entity, boolean doEquipment, boolean displayExtraAnimations)
    • disguiseEntity

      public static void disguiseEntity(org.bukkit.entity.Entity entity, Disguise disguise)
    • disguiseEntity

      public static void disguiseEntity(org.bukkit.command.CommandSender commandSender, org.bukkit.entity.Entity entity, Disguise disguise)
    • disguiseIgnorePlayers

      public static void disguiseIgnorePlayers(org.bukkit.entity.Entity entity, Disguise disguise, Collection playersToNotSeeDisguise)
    • disguiseIgnorePlayers

      @Deprecated public static void disguiseIgnorePlayers(org.bukkit.entity.Entity entity, Disguise disguise, List<String> playersToNotSeeDisguise)
      Deprecated.
    • disguiseIgnorePlayers

      public static void disguiseIgnorePlayers(org.bukkit.entity.Entity entity, Disguise disguise, org.bukkit.entity.Player... playersToNotSeeDisguise)
    • disguiseIgnorePlayers

      public static void disguiseIgnorePlayers(org.bukkit.entity.Entity entity, Disguise disguise, String... playersToNotSeeDisguise)
    • disguiseNextEntity

      public static int disguiseNextEntity(Disguise disguise)
      Disguise the next entity to spawn, this means you need to spawn an entity immediately after calling this.
      Parameters:
      disguise -
      Returns:
    • disguiseToAll

      public static void disguiseToAll(org.bukkit.entity.Entity entity, Disguise disguise)
      Disguise this entity with this disguise
      Parameters:
      entity -
      disguise -
    • disguiseToPlayers

      public static void disguiseToPlayers(org.bukkit.entity.Entity entity, Disguise disguise, Collection playersToViewDisguise)
    • disguiseToPlayers

      @Deprecated public static void disguiseToPlayers(org.bukkit.entity.Entity entity, Disguise disguise, List<String> playersToViewDisguise)
      Deprecated.
    • disguiseToPlayers

      public static void disguiseToPlayers(org.bukkit.entity.Entity entity, Disguise disguise, org.bukkit.entity.Player... playersToViewDisguise)
    • disguiseToPlayers

      public static void disguiseToPlayers(org.bukkit.entity.Entity entity, Disguise disguise, String... playersToViewDisguise)
    • getDisguise

      public static Disguise getDisguise(org.bukkit.entity.Entity disguised)
      Get the disguise of a entity
      Parameters:
      disguised -
      Returns:
    • parseToString

      public static String parseToString(Disguise disguise, boolean outputSkin)
    • parseToString

      public static String parseToString(Disguise disguise)
    • getDisguise

      public static Disguise getDisguise(org.bukkit.entity.Player observer, org.bukkit.entity.Entity disguised)
      Get the disguise of a entity
      Parameters:
      observer -
      disguised -
      Returns:
    • getDisguises

      public static Disguise[] getDisguises(org.bukkit.entity.Entity disguised)
      Get the disguises of a entity
      Parameters:
      disguised -
      Returns:
    • getSelfDisguiseId

      public static int getSelfDisguiseId()
    • isDisguised

      public static boolean isDisguised(org.bukkit.entity.Entity disguised)
      Is this entity disguised
      Parameters:
      disguised -
      Returns:
    • isDisguised

      public static boolean isDisguised(org.bukkit.entity.Player observer, org.bukkit.entity.Entity disguised)
      Is this entity disguised
      Parameters:
      observer -
      disguised -
      Returns:
    • isDisguiseInUse

      public static boolean isDisguiseInUse(Disguise disguise)
    • isSelfDisguised

      public static boolean isSelfDisguised(org.bukkit.entity.Player player)
    • isViewSelfToggled

      public static boolean isViewSelfToggled(org.bukkit.entity.Entity entity)
      Returns true if the entitiy has /disguiseviewself toggled on.
      Parameters:
      entity -
      Returns:
    • isActionBarShown

      @Deprecated public static boolean isActionBarShown(org.bukkit.entity.Entity entity)
      Deprecated.
    • isNotifyBarShown

      public static boolean isNotifyBarShown(org.bukkit.entity.Entity entity)
      Returns true if the entity wants to see the action bar / boss bar
      Parameters:
      entity -
      Returns:
    • hasSelfDisguisePreference

      public static boolean hasSelfDisguisePreference(org.bukkit.entity.Entity entity)
    • hasActionBarPreference

      public static boolean hasActionBarPreference(org.bukkit.entity.Entity entity)
    • undisguiseToAll

      public static void undisguiseToAll(org.bukkit.entity.Entity entity)
      Undisguise the entity. This doesn't let you cancel the UndisguiseEvent if the entity is no longer valid. Aka removed from the world.
      Parameters:
      entity -
    • undisguiseToAll

      public static void undisguiseToAll(org.bukkit.command.CommandSender sender, org.bukkit.entity.Entity entity)
      Undisguise the entity. This doesn't let you cancel the UndisguiseEvent if the entity is no longer valid. Aka removed from the world.
      Parameters:
      entity -
    • setViewDisguiseToggled

      public static void setViewDisguiseToggled(org.bukkit.entity.Entity entity, boolean canSeeSelfDisguises)
      Set whether this player can see their own disguise or not.
      Parameters:
      entity -
      canSeeSelfDisguises -
    • setActionBarShown

      public static void setActionBarShown(org.bukkit.entity.Player player, boolean isShown)