Class DataWatcherHelper

java.lang.Object
me.neznamy.tab.platforms.bukkit.nms.datawatcher.DataWatcherHelper

public class DataWatcherHelper extends Object
A class to help to assign DataWatcher items as positions often change per-version
  • Constructor Details

    • DataWatcherHelper

      public DataWatcherHelper(DataWatcher data)
      Constructs new instance of this class with given parent
      Parameters:
      data - data to write to
  • Method Details

    • setEntityFlags

      public void setEntityFlags(byte flags)
      Writes entity byte flags
      Parameters:
      flags - flags to write
    • setCustomName

      public void setCustomName(String customName, me.neznamy.tab.api.ProtocolVersion clientVersion)
      Writes entity custom name with position based on server version and value depending on client version (RGB or not)
      Parameters:
      customName - target custom name
      clientVersion - client version
    • setCustomNameVisible

      public void setCustomNameVisible(boolean visible)
      Writes custom name visibility boolean
      Parameters:
      visible - if visible or not
    • setHealth

      public void setHealth(float health)
      Writes entity health
      Parameters:
      health - health of entity
    • setArmorStandFlags

      public void setArmorStandFlags(byte flags)
      Writes armor stand flags
      Parameters:
      flags - flags to write