Class Disguise

java.lang.Object
me.libraryaddict.disguise.disguisetypes.Disguise
Direct Known Subclasses:
TargetedDisguise

public abstract class Disguise extends Object
  • Field Details

    • disguiseExpires

      protected long disguiseExpires
      If set, how long before disguise expires
  • Constructor Details

  • Method Details

    • getCustomData

      public HashMap<String,Object> getCustomData()
    • getUUID

      public UUID getUUID()
    • getMultiNameLength

      public int getMultiNameLength()
    • setDisguiseName

      public void setDisguiseName(String name)
    • getMultiName

      public String[] getMultiName()
    • setMultiName

      public void setMultiName(String... name)
    • getHeight

      public abstract double getHeight()
    • getDisguiseScale

      public double getDisguiseScale()
    • sendArmorStands

      protected void sendArmorStands(String[] oldName)
    • getArmorstandIds

      public int[] getArmorstandIds()
    • addCustomData

      public void addCustomData(String key, Object data)
    • hasCustomData

      public boolean hasCustomData(String key)
    • getCustomData

      public Object getCustomData(String key)
    • clone

      public abstract Disguise clone()
      Overrides:
      clone in class Object
    • clone

      protected void clone(Disguise disguise)
    • createDisguise

      protected void createDisguise()
      Seems I do this method so I can make cleaner constructors on disguises..
    • isDisguiseExpired

      public boolean isDisguiseExpired()
    • getExpires

      public long getExpires()
    • setExpires

      public void setExpires(long timeToExpire)
    • setNotifyBar

      public void setNotifyBar(DisguiseConfig.NotifyBar bar)
    • setBossBarColor

      public void setBossBarColor(org.bukkit.boss.BarColor color)
    • setBossBarStyle

      public void setBossBarStyle(org.bukkit.boss.BarStyle style)
    • setBossBar

      public void setBossBar(org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle style)
    • isUpsideDown

      public boolean isUpsideDown()
    • setUpsideDown

      public Disguise setUpsideDown(boolean upsideDown)
    • doPeriodicTick

      protected void doPeriodicTick()
    • setEntity

      public Disguise setEntity(org.bukkit.entity.Entity entity)
      Set the entity of the disguise. Only used for internal things.
      Parameters:
      entity -
      Returns:
      disguise
    • canScaleDisguise

      public boolean canScaleDisguise()
    • setScalePlayerToDisguise

      public void setScalePlayerToDisguise(boolean scalePlayerToDisguise)
    • adjustTallSelfDisguiseScale

      protected void adjustTallSelfDisguiseScale()
    • getType

      public DisguiseType getType()
      Get the disguise type
      Returns:
      disguiseType
    • setWatcher

      @Deprecated public Disguise setWatcher(FlagWatcher newWatcher)
      Deprecated.
      Deprecated as this isn't used as it should be
    • isHidePlayer

      public boolean isHidePlayer()
      Will a disguised player appear in tab
    • setHidePlayer

      public void setHidePlayer(boolean hidePlayerInTab)
    • isHidingArmorFromSelf

      @Deprecated public boolean isHidingArmorFromSelf()
      Deprecated.
    • isHidingHeldItemFromSelf

      @Deprecated public boolean isHidingHeldItemFromSelf()
      Deprecated.
    • setHideArmorFromSelf

      public Disguise setHideArmorFromSelf(boolean hideArmor)
    • setHideHeldItemFromSelf

      public Disguise setHideHeldItemFromSelf(boolean hideHeldItem)
    • setKeepDisguiseOnPlayerDeath

      public Disguise setKeepDisguiseOnPlayerDeath(boolean keepDisguise)
    • isMiscDisguise

      public boolean isMiscDisguise()
    • isMobDisguise

      public boolean isMobDisguise()
    • setModifyBoundingBox

      public Disguise setModifyBoundingBox(boolean modifyBox)
    • isPlayerDisguise

      public boolean isPlayerDisguise()
    • isCustomDisguise

      public boolean isCustomDisguise()
    • isRemoveDisguiseOnDeath

      public boolean isRemoveDisguiseOnDeath()
      Internal use
    • isSelfDisguiseSoundsReplaced

      @Deprecated public boolean isSelfDisguiseSoundsReplaced()
      Deprecated.
    • isSelfDisguiseVisible

      public boolean isSelfDisguiseVisible()
      Can the disguised view themselves as the disguise
      Returns:
      viewSelfDisguise
    • setSelfDisguiseVisible

      public void setSelfDisguiseVisible(boolean selfDisguiseVisible)
    • isSoundsReplaced

      @Deprecated public boolean isSoundsReplaced()
      Deprecated.
    • setVelocitySent

      public Disguise setVelocitySent(boolean sendVelocity)
    • removeDisguise

      public boolean removeDisguise()
      Removes the disguise and undisguises the entity if its using this disguise.
      Returns:
      removeDiguise
    • removeDisguise

      public boolean removeDisguise(org.bukkit.command.CommandSender sender)
    • removeDisguise

      public boolean removeDisguise(boolean disguiseBeingReplaced)
    • removeDisguise

      public boolean removeDisguise(org.bukkit.command.CommandSender sender, boolean disguiseBeingReplaced)
      Removes the disguise and undisguises the entity if it's using this disguise.
      Parameters:
      disguiseBeingReplaced - If the entity's disguise is being replaced with another
      Returns:
    • setHearSelfDisguise

      public Disguise setHearSelfDisguise(boolean hearSelfDisguise)
    • setReplaceSounds

      public Disguise setReplaceSounds(boolean areSoundsReplaced)
    • setViewSelfDisguise

      @Deprecated public Disguise setViewSelfDisguise(boolean viewSelfDisguise)
      Deprecated.
      Can the disguised view themselves as the disguise
      Parameters:
      viewSelfDisguise -
      Returns:
    • startDisguise

      public boolean startDisguise()
    • startDisguise

      public boolean startDisguise(org.bukkit.command.CommandSender commandSender)
    • stopDisguise

      public boolean stopDisguise()
    • setTallSelfDisguise

      public void setTallSelfDisguise(DisguiseConfig.TallSelfDisguise tallSelfDisguise)
    • setTallSelfDisguisesScaling

      @Deprecated public void setTallSelfDisguisesScaling(boolean tallSelfDisguisesScaling)
      Deprecated.
    • isTallSelfDisguisesScaling

      @Deprecated public boolean isTallSelfDisguisesScaling()
      Deprecated.
    • setTallDisguisesVisible

      @Deprecated public void setTallDisguisesVisible(boolean tallDisguisesVisible)
      Deprecated.
    • isTallDisguisesVisible

      @Deprecated public boolean isTallDisguisesVisible()
      Deprecated.
      Returns true if the self disguise will never check for height before blocking the player's view