Class LibsDisguises

java.lang.Object
ua.mcchickenstudio.opencreative.managers.disguises.LibsDisguises
All Implemented Interfaces:
DisguiseManager, Manager

public final class LibsDisguises extends Object implements DisguiseManager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.
    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.
    void
    setDisguiseDisplayName(@NotNull org.bukkit.entity.Entity entity, @NotNull String displayName)
    Sets new display name for current disguise of entity.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LibsDisguises

      public LibsDisguises()
  • Method Details

    • disguiseAsPlayer

      public void disguiseAsPlayer(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String skin, @NotNull @NotNull String nickname)
      Description copied from interface: DisguiseManager
      Disguises entity as player.
      Specified by:
      disguiseAsPlayer in interface DisguiseManager
      Parameters:
      entity - entity to disguise.
      skin - skin nickname for disguise.
      nickname - nickname of player.
    • setDisguiseDisplayName

      public void setDisguiseDisplayName(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull String displayName)
      Description copied from interface: DisguiseManager
      Sets new display name for current disguise of entity. If entity doesn't have disguise, it should be ignored.
      Specified by:
      setDisguiseDisplayName in interface DisguiseManager
      Parameters:
      entity - entity to change name.
      displayName - display name to set.
    • disguiseAsEntity

      public void disguiseAsEntity(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.entity.EntityType type)
      Description copied from interface: DisguiseManager
      Disguises entity as other entity type.
      Specified by:
      disguiseAsEntity in interface DisguiseManager
      Parameters:
      entity - entity, that will be disguised.
      type - type of entity to disguise as.
    • disguiseAsBlock

      public void disguiseAsBlock(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.Material material)
      Description copied from interface: DisguiseManager
      Disguises entity as block.
      Specified by:
      disguiseAsBlock in interface DisguiseManager
      Parameters:
      entity - entity to disguise.
      material - material of block.
    • clearDisguises

      public void clearDisguises(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Description copied from interface: DisguiseManager
      Removes all disguises from entity.
      Specified by:
      clearDisguises in interface DisguiseManager
      Parameters:
      entity - entity to remove disguises.
    • init

      public void init()
      Description copied from interface: Manager
      Initialization of manager.
      Specified by:
      init in interface Manager
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Manager
      Checks if manager is ready to work.
      Specified by:
      isEnabled in interface Manager
      Returns:
      true - if enabled, false - disabled.
    • getName

      public String getName()
      Description copied from interface: Manager
      Returns name of manager, that will be displayed by request in the logs.
      Specified by:
      getName in interface Manager
      Returns:
      name of manager.