Class FlagWatcher

java.lang.Object
me.libraryaddict.disguise.disguisetypes.FlagWatcher
Direct Known Subclasses:
AreaEffectCloudWatcher, ArrowWatcher, BoatWatcher, DisplayWatcher, DroppedItemWatcher, EnderCrystalWatcher, EnderSignalWatcher, EvokerFangsWatcher, ExperienceOrbWatcher, FallingBlockWatcher, FireballWatcher, FireworkWatcher, FishingHookWatcher, HangingWatcher, InteractionWatcher, LivingWatcher, MinecartWatcher, ModdedWatcher, OminousItemSpawnerWatcher, SplashPotionWatcher, ThrowableWatcher, TNTWatcher, WitherSkullWatcher

public class FlagWatcher extends Object
  • Field Details

    • DONT_SEND

      protected static final Object DONT_SEND
      If this object is used, it represents that this entity should not have any metadata sent for the retrospective id

      As of time of writing, Lib's Disguises does not use this, and does not check for it to ensure non-nullability on getters

  • Constructor Details

    • FlagWatcher

      public FlagWatcher(Disguise disguise)
  • Method Details

    • isPitchLocked

      public boolean isPitchLocked()
    • setPitchLocked

      public void setPitchLocked(boolean pitchLocked)
    • setNameYModifier

      public void setNameYModifier(float yModifier)
    • setYModifier

      public void setYModifier(float yModifier)
    • isYawLocked

      public boolean isYawLocked()
    • setYawLocked

      public void setYawLocked(boolean yawLocked)
    • setPitchLock

      public void setPitchLock(Float pitch)
    • setYawLock

      public void setYawLock(Float yaw)
    • addEntityAnimations

      protected byte addEntityAnimations(MetaIndex index, byte originalValue, byte entityValue)
    • clone

      public FlagWatcher clone(Disguise owningDisguise)
    • getHelmet

      public org.bukkit.inventory.ItemStack getHelmet()
    • setHelmet

      public void setHelmet(org.bukkit.inventory.ItemStack itemStack)
    • getBoots

      public org.bukkit.inventory.ItemStack getBoots()
    • setBoots

      public void setBoots(org.bukkit.inventory.ItemStack itemStack)
    • getLeggings

      public org.bukkit.inventory.ItemStack getLeggings()
    • setLeggings

      public void setLeggings(org.bukkit.inventory.ItemStack itemStack)
    • getChestplate

      public org.bukkit.inventory.ItemStack getChestplate()
    • setChestplate

      public void setChestplate(org.bukkit.inventory.ItemStack itemStack)
    • setInternalUpsideDown

      @Deprecated public void setInternalUpsideDown(boolean upsideDown)
      Deprecated.
    • setUpsideDown

      public void setUpsideDown(boolean upsideDown)
    • convert

      public List<me.libraryaddict.disguise.utilities.reflection.WatcherValue> convert(org.bukkit.entity.Player player, List<me.libraryaddict.disguise.utilities.reflection.WatcherValue> list)
    • getEntityPose

      public com.github.retrooper.packetevents.protocol.entity.pose.EntityPose getEntityPose()
    • setEntityPose

      public void setEntityPose(com.github.retrooper.packetevents.protocol.entity.pose.EntityPose entityPose)
    • getArmor

      public org.bukkit.inventory.ItemStack[] getArmor()
    • setArmor

      public void setArmor(org.bukkit.inventory.ItemStack[] items)
    • updateNameHeight

      protected void updateNameHeight()
    • getCustomName

      public String getCustomName()
    • setCustomName

      public void setCustomName(String name)
    • setInteralCustomName

      protected void setInteralCustomName(String name)
    • setDisguise

      @Deprecated @Internal public void setDisguise(TargetedDisguise disguise)
      Deprecated.
    • getEquipment

      public org.bukkit.inventory.EntityEquipment getEquipment()
    • getItemInMainHand

      public org.bukkit.inventory.ItemStack getItemInMainHand()
    • setItemInMainHand

      public void setItemInMainHand(org.bukkit.inventory.ItemStack itemstack)
    • getItemInOffHand

      public org.bukkit.inventory.ItemStack getItemInOffHand()
    • setItemInOffHand

      public void setItemInOffHand(org.bukkit.inventory.ItemStack itemstack)
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack(org.bukkit.inventory.EquipmentSlot slot)
    • getData

      protected <Y> Y getData(MetaIndex<Y> flagType)
    • getWatchableObjects

      public List<me.libraryaddict.disguise.utilities.reflection.WatcherValue> getWatchableObjects()
    • hasCustomName

      public boolean hasCustomName()
    • hasValue

      public boolean hasValue(MetaIndex metaIndex)
    • isBurning

      public boolean isBurning()
    • setBurning

      public void setBurning(boolean setBurning)
    • isCustomNameVisible

      public boolean isCustomNameVisible()
    • setCustomNameVisible

      public void setCustomNameVisible(boolean display)
    • setInternalCustomNameVisible

      protected void setInternalCustomNameVisible(boolean display)
    • isEntityAnimationsAdded

      @Deprecated public boolean isEntityAnimationsAdded()
      Deprecated.
    • isFlyingWithElytra

      public boolean isFlyingWithElytra()
    • setFlyingWithElytra

      public void setFlyingWithElytra(boolean flying)
    • isGlowing

      public boolean isGlowing()
    • setGlowing

      public void setGlowing(boolean glowing)
    • setGlowColor

      public void setGlowColor(org.bukkit.ChatColor glowColor)
    • isInvisible

      public boolean isInvisible()
    • setInvisible

      public void setInvisible(boolean setInvis)
    • isNoGravity

      public boolean isNoGravity()
    • setNoGravity

      public void setNoGravity(boolean noGravity)
    • isRightClicking

      @Deprecated public boolean isRightClicking()
      Deprecated.
    • setRightClicking

      @Deprecated public void setRightClicking(boolean rightClicking)
      Deprecated.
    • isMainHandRaised

      public boolean isMainHandRaised()
    • setMainHandRaised

      public void setMainHandRaised(boolean setRightClicking)
    • isSneaking

      public boolean isSneaking()
    • setSneaking

      public void setSneaking(boolean setSneaking)
    • isSprinting

      public boolean isSprinting()
    • setSprinting

      public void setSprinting(boolean setSprinting)
    • rebuildWatchableObjects

      public void rebuildWatchableObjects()
    • sendData

      protected void sendData(MetaIndex... dataValues)
    • isAddEntityAnimations

      public boolean isAddEntityAnimations()
    • setBackupValue

      protected void setBackupValue(MetaIndex no, Object value)
    • getEntityFlag

      protected boolean getEntityFlag(int byteValue)
    • sendEntityFlag

      protected void sendEntityFlag(int byteValue, boolean flag)
    • setEntityFlag

      protected void setEntityFlag(int byteValue, boolean flag)
    • setItemInHand

      @Deprecated public void setItemInHand(org.bukkit.inventory.ItemStack itemstack)
      Deprecated.
      Don't use this, use setItemInMainHand instead
      Parameters:
      itemstack -
    • setItemStack

      public void setItemStack(org.bukkit.inventory.EquipmentSlot slot, org.bukkit.inventory.ItemStack itemStack)
    • sendItemStack

      protected void sendItemStack(org.bukkit.inventory.EquipmentSlot slot, org.bukkit.inventory.ItemStack itemStack)
    • isSleeping

      public boolean isSleeping()
    • setSleeping

      public void setSleeping(boolean sleeping)
    • isSwimming

      public boolean isSwimming()
    • setSwimming

      public void setSwimming(boolean swimming)
    • updatePose

      protected void updatePose()
    • getTicksFrozen

      public int getTicksFrozen()
    • setTicksFrozen

      public void setTicksFrozen(int ticksFrozen)
    • setUnsafeData

      @Deprecated public <Y> void setUnsafeData(MetaIndex<Y> id, Y value)
      Deprecated.
    • setData

      protected <Y> void setData(MetaIndex<Y> id, Y value)
    • sendData

      protected <Y> void sendData(MetaIndex<Y> id, Y value)
    • onPreDisguiseStart

      protected void onPreDisguiseStart()