Interface DisguiseManager

All Superinterfaces:
Manager
All Known Implementing Classes:
DisabledDisguises, LibsDisguises

public interface DisguiseManager extends Manager

DisguiseManager

This interface represents a disguise manager, that adds disguises for entities and clears them.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clearDisguises(@NotNull org.bukkit.entity.Entity entity)
    Removes all disguises from entity.
    void
    disguiseAsBlock(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.Material material)
    Disguises entity as block.
    void
    disguiseAsEntity(@NotNull org.bukkit.entity.Entity entity, @NotNull org.bukkit.entity.EntityType type)
    Disguises entity as other entity type.
    void
    disguiseAsPlayer(@NotNull org.bukkit.entity.Entity entity, @NotNull String skin, @NotNull String nickname)
    Disguises entity as player.
    void
    setDisguiseDisplayName(@NotNull org.bukkit.entity.Entity entity, @NotNull String displayName)
    Sets new display name for current disguise of entity.

    Methods inherited from interface Manager

    getName, init, isEnabled
    Modifier and Type
    Method
    Description
    Returns name of manager, that will be displayed by request in the logs.
    void
    Initialization of manager.
    boolean
    Checks if manager is ready to work.
  • Method Details

    • disguiseAsPlayer

      void disguiseAsPlayer(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String skin, @NotNull @NotNull String nickname)
      Disguises entity as player.
      Parameters:
      entity - entity to disguise.
      skin - skin nickname for disguise.
      nickname - nickname of player.
    • disguiseAsEntity

      void disguiseAsEntity(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.entity.EntityType type)
      Disguises entity as other entity type.
      Parameters:
      entity - entity, that will be disguised.
      type - type of entity to disguise as.
    • disguiseAsBlock

      void disguiseAsBlock(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Material material)
      Disguises entity as block.
      Parameters:
      entity - entity to disguise.
      material - material of block.
    • setDisguiseDisplayName

      void setDisguiseDisplayName(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String displayName)
      Sets new display name for current disguise of entity. If entity doesn't have disguise, it should be ignored.
      Parameters:
      entity - entity to change name.
      displayName - display name to set.
    • clearDisguises

      void clearDisguises(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Removes all disguises from entity.
      Parameters:
      entity - entity to remove disguises.