Class Disguise
java.lang.Object
me.libraryaddict.disguise.disguisetypes.Disguise
- Direct Known Subclasses:
TargetedDisguise
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
If set, how long before disguise expires -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomData
(String key, Object data) protected void
boolean
abstract Disguise
clone()
protected void
protected void
Seems I do this method so I can make cleaner constructors on disguises..protected void
int[]
getCustomData
(String key) double
long
abstract double
String[]
int
getType()
Get the disguise typegetUUID()
boolean
hasCustomData
(String key) boolean
boolean
boolean
Will a disguised player appear in tabboolean
Deprecated.boolean
Deprecated.boolean
boolean
boolean
boolean
Internal useboolean
Deprecated.boolean
Can the disguised view themselves as the disguiseboolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
boolean
Removes the disguise and undisguises the entity if its using this disguise.boolean
removeDisguise
(boolean disguiseBeingReplaced) boolean
removeDisguise
(org.bukkit.command.CommandSender sender) boolean
removeDisguise
(org.bukkit.command.CommandSender sender, boolean disguiseBeingReplaced) Removes the disguise and undisguises the entity if it's using this disguise.protected void
sendArmorStands
(String[] oldName) void
setBossBar
(org.bukkit.boss.BarColor color, org.bukkit.boss.BarStyle style) void
setBossBarColor
(org.bukkit.boss.BarColor color) void
setBossBarStyle
(org.bukkit.boss.BarStyle style) void
setDisguiseName
(String name) setEntity
(org.bukkit.entity.Entity entity) Set the entity of the disguise.void
setExpires
(long timeToExpire) setHearSelfDisguise
(boolean hearSelfDisguise) setHideArmorFromSelf
(boolean hideArmor) setHideHeldItemFromSelf
(boolean hideHeldItem) void
setHidePlayer
(boolean hidePlayerInTab) setKeepDisguiseOnPlayerDeath
(boolean keepDisguise) setModifyBoundingBox
(boolean modifyBox) void
setMultiName
(String... name) void
setReplaceSounds
(boolean areSoundsReplaced) void
setScalePlayerToDisguise
(boolean scalePlayerToDisguise) void
setSelfDisguiseVisible
(boolean selfDisguiseVisible) void
setTallDisguisesVisible
(boolean tallDisguisesVisible) Deprecated.void
setTallSelfDisguise
(DisguiseConfig.TallSelfDisguise tallSelfDisguise) void
setTallSelfDisguisesScaling
(boolean tallSelfDisguisesScaling) Deprecated.setUpsideDown
(boolean upsideDown) setVelocitySent
(boolean sendVelocity) setViewSelfDisguise
(boolean viewSelfDisguise) Deprecated.setWatcher
(FlagWatcher newWatcher) Deprecated.boolean
boolean
startDisguise
(org.bukkit.command.CommandSender commandSender) boolean
-
Field Details
-
disguiseExpires
protected long disguiseExpiresIf set, how long before disguise expires
-
-
Constructor Details
-
Disguise
-
-
Method Details
-
getCustomData
-
getUUID
-
getMultiNameLength
public int getMultiNameLength() -
setDisguiseName
-
getMultiName
-
setMultiName
-
getHeight
public abstract double getHeight() -
getDisguiseScale
public double getDisguiseScale() -
sendArmorStands
-
getArmorstandIds
public int[] getArmorstandIds() -
addCustomData
-
hasCustomData
-
getCustomData
-
clone
-
clone
-
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
-
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
-
doPeriodicTick
protected void doPeriodicTick() -
setEntity
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
Get the disguise type- Returns:
- disguiseType
-
setWatcher
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. -
isHidingHeldItemFromSelf
Deprecated. -
setHideArmorFromSelf
-
setHideHeldItemFromSelf
-
setKeepDisguiseOnPlayerDeath
-
isMiscDisguise
public boolean isMiscDisguise() -
isMobDisguise
public boolean isMobDisguise() -
setModifyBoundingBox
-
isPlayerDisguise
public boolean isPlayerDisguise() -
isCustomDisguise
public boolean isCustomDisguise() -
isRemoveDisguiseOnDeath
public boolean isRemoveDisguiseOnDeath()Internal use -
isSelfDisguiseSoundsReplaced
Deprecated. -
isSelfDisguiseVisible
public boolean isSelfDisguiseVisible()Can the disguised view themselves as the disguise- Returns:
- viewSelfDisguise
-
setSelfDisguiseVisible
public void setSelfDisguiseVisible(boolean selfDisguiseVisible) -
isSoundsReplaced
Deprecated. -
setVelocitySent
-
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
-
setReplaceSounds
-
setViewSelfDisguise
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
-
setTallSelfDisguisesScaling
Deprecated. -
isTallSelfDisguisesScaling
Deprecated. -
setTallDisguisesVisible
Deprecated. -
isTallDisguisesVisible
Deprecated.Returns true if the self disguise will never check for height before blocking the player's view
-