Class DisabledDisguises

java.lang.Object
ua.mcchickenstudio.opencreative.managers.disguises.DisabledDisguises
All Implemented Interfaces:
DisguiseManager, Manager, ShutDownable, Startable, Toggleable

public final class DisabledDisguises 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.
    @NotNull String
    Returns name of manager, that will be displayed by request in the logs.
    boolean
    Checks whether manager was started successfully and it currently works.
    void
    setDisguiseDisplayName(@NotNull org.bukkit.entity.Entity entity, @NotNull String displayName)
    Sets new display name for current disguise of entity.
    void
    Does tasks on shutdown.
    void
    Does tasks on start.

    Methods inherited from class java.lang.Object

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

    • DisabledDisguises

      public DisabledDisguises()
  • 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.
    • start

      public void start()
      Description copied from interface: Startable
      Does tasks on start.
      Specified by:
      start in interface Startable
    • shutdown

      public void shutdown()
      Description copied from interface: ShutDownable
      Does tasks on shutdown.
      Specified by:
      shutdown in interface ShutDownable
    • isWorking

      public boolean isWorking()
      Description copied from interface: Toggleable
      Checks whether manager was started successfully and it currently works.
      Specified by:
      isWorking in interface Toggleable
      Returns:
      true - started up, false - shut downed.
    • getName

      @NotNull public @NotNull 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.