Class EntityStatValue

java.lang.Object
com.hypixel.hytale.server.core.modules.entitystats.EntityStatValue

public class EntityStatValue extends Object
  • Field Details

  • Constructor Details

    • EntityStatValue

      public EntityStatValue(int index, @Nonnull EntityStatType asset)
  • Method Details

    • getId

      public String getId()
    • getIndex

      public int getIndex()
    • get

      public float get()
    • asPercentage

      public float asPercentage()
    • getMin

      public float getMin()
    • getMax

      public float getMax()
    • getRegeneratingValues

      @Nullable public RegeneratingValue[] getRegeneratingValues()
    • getModifier

      @Nullable public Modifier getModifier(String key)
    • getIgnoreInvulnerability

      public boolean getIgnoreInvulnerability()
    • getModifiers

      @Nullable public Map<String,Modifier> getModifiers()
    • synchronizeAsset

      public boolean synchronizeAsset(int index, @Nonnull EntityStatType asset)
      Parameters:
      index - the stats asset index
      asset - the asset
      Returns:
      true if the asset was changed
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object