Class PlayerWatcher
java.lang.Object
me.libraryaddict.disguise.disguisetypes.FlagWatcher
me.libraryaddict.disguise.disguisetypes.watchers.LivingWatcher
me.libraryaddict.disguise.disguisetypes.watchers.AvatarWatcher
me.libraryaddict.disguise.disguisetypes.watchers.PlayerWatcher
-
Field Summary
Fields inherited from class me.libraryaddict.disguise.disguisetypes.FlagWatcher
DONT_SEND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MetaIndex<?> org.bukkit.entity.Parrot.VariantGets the parrot displayed on the right shoulder, this will always be null unless it was set on the disguisegetName()org.bukkit.entity.Parrot.VariantGets the parrot displayed on the right shoulder, this will always be null unless it was set on the disguise@NotNull com.github.retrooper.packetevents.protocol.player.UserProfilegetSkin()@Nullable StringIf the skin was retrieved via a username, this is set to indicate the player usedbooleanbooleanbooleanbooleanvoidsetDisplayedInTab(boolean showPlayerInTab) voidsetLeftShoulderHasParrot(boolean hasParrot) voidsetLeftShoulderParrot(org.bukkit.entity.Parrot.Variant variant) Sets the parrot to be shown on the shoulder.voidvoidsetNameVisible(boolean nameVisible) voidsetRightShoulderHasParrot(boolean hasParrot) voidsetRightShoulderParrot(org.bukkit.entity.Parrot.Variant variant) Sets the parrot to be shown on the shoulder.voidsetSkin(@Nullable com.github.retrooper.packetevents.protocol.player.UserProfile profile) voidvoidsetTablistName(String tablistName) Methods inherited from class me.libraryaddict.disguise.disguisetypes.watchers.AvatarWatcher
getMainHand, isCapeEnabled, isHatEnabled, isJacketEnabled, isLeftPantsEnabled, isLeftSleeveEnabled, isRightPantsEnabled, isRightSleeveEnabled, setCapeEnabled, setHatEnabled, setJacketEnabled, setLeftPantsEnabled, setLeftSleeveEnabled, setMainHand, setRightPantsEnabled, setRightSleeveEnabledMethods inherited from class me.libraryaddict.disguise.disguisetypes.watchers.LivingWatcher
addEntityAnimations, addParticle, addPotionEffect, getArrowsSticking, getBedPosition, getHealth, getParticles, getParticlesColor, getPotionEffects, getScale, hasPotionEffect, isMainHandRaised, isOffhandRaised, isPotionParticlesAmbient, isRightClicking, isSpinning, removeParticles, removePotionEffect, setArrowsSticking, setBedPosition, setBedPosition, setHealth, setMainHandRaised, setMaxHealth, setOffhandRaised, setParticlesColor, setPotionParticlesAmbient, setRightClicking, setScale, setSpinningMethods inherited from class me.libraryaddict.disguise.disguisetypes.FlagWatcher
convert, getArmor, getBoots, getChestplate, getCustomName, getData, getEntityFlag, getEntityPose, getEquipment, getHelmet, getItemInMainHand, getItemInOffHand, getItemStack, getLeggings, getTicksFrozen, getWatchableObjects, hasCustomName, hasValue, isAddEntityAnimations, isBurning, isCustomNameVisible, isEntityAnimationsAdded, isFlyingWithElytra, isGlowing, isInvisible, isNoGravity, isPitchLocked, isSleeping, isSneaking, isSprinting, isSwimming, isYawLocked, onPreDisguiseStart, rebuildWatchableObjects, sendData, sendData, sendEntityFlag, sendItemStack, setArmor, setBackupValue, setBoots, setBurning, setChestplate, setCustomName, setCustomNameVisible, setData, setDisguise, setEntityFlag, setEntityPose, setFlyingWithElytra, setGlowColor, setGlowing, setHelmet, setInteralCustomName, setInternalCustomNameVisible, setInternalUpsideDown, setInvisible, setItemInHand, setItemInMainHand, setItemInOffHand, setItemStack, setLeggings, setNameYModifier, setNoGravity, setPitchLock, setPitchLocked, setSleeping, setSneaking, setSprinting, setSwimming, setTicksFrozen, setUnsafeData, setUpsideDown, setYawLock, setYawLocked, setYModifier, updateNameHeight, updatePose
-
Constructor Details
-
PlayerWatcher
-
-
Method Details
-
getSkinMeta
- Overrides:
getSkinMetain classAvatarWatcher
-
getHandMeta
- Overrides:
getHandMetain classAvatarWatcher
-
getSkin
@NotNull public @NotNull com.github.retrooper.packetevents.protocol.player.UserProfile getSkin() -
getSkinName
Description copied from class:AvatarWatcherIf the skin was retrieved via a username, this is set to indicate the player used- Specified by:
getSkinNamein classAvatarWatcher- Returns:
- Name of player if it is relevant for skin resolution
-
setSkin
- Specified by:
setSkinin classAvatarWatcher
-
setSkin
public void setSkin(@Nullable @Nullable com.github.retrooper.packetevents.protocol.player.UserProfile profile) - Specified by:
setSkinin classAvatarWatcher
-
isDisplayedInTab
public boolean isDisplayedInTab() -
setDisplayedInTab
public void setDisplayedInTab(boolean showPlayerInTab) -
isNameVisible
public boolean isNameVisible() -
setNameVisible
public void setNameVisible(boolean nameVisible) -
getName
-
setName
-
getTablistName
-
setTablistName
-
clone
- Overrides:
clonein classLivingWatcher
-
getRightShoulderParrot
@Nullable public org.bukkit.entity.Parrot.Variant getRightShoulderParrot()Gets the parrot displayed on the right shoulder, this will always be null unless it was set on the disguise- Returns:
- The parrot on the disguise
-
setRightShoulderParrot
public void setRightShoulderParrot(@Nullable org.bukkit.entity.Parrot.Variant variant) Sets the parrot to be shown on the shoulder. To hide the parrot, use setRightShoulderHasParrot- Parameters:
variant- If null, will pasthrough the underlying entity if it is a player, otherwise no parrot
-
getLeftShoulderParrot
@Nullable public org.bukkit.entity.Parrot.Variant getLeftShoulderParrot()Gets the parrot displayed on the right shoulder, this will always be null unless it was set on the disguise- Returns:
- The parrot on the disguise
-
setLeftShoulderParrot
public void setLeftShoulderParrot(@Nullable org.bukkit.entity.Parrot.Variant variant) Sets the parrot to be shown on the shoulder. To hide the parrot, use setLeftShoulderHasParrot- Parameters:
variant- If null, will pasthrough the underlying entity if it is a player, otherwise no parrot
-
isRightShoulderHasParrot
public boolean isRightShoulderHasParrot() -
setRightShoulderHasParrot
public void setRightShoulderHasParrot(boolean hasParrot) -
isLeftShoulderHasParrot
public boolean isLeftShoulderHasParrot() -
setLeftShoulderHasParrot
public void setLeftShoulderHasParrot(boolean hasParrot)
-