Class ValueStore

java.lang.Object
com.hypixel.hytale.server.npc.valuestore.ValueStore
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class ValueStore extends Object implements Component<EntityStore>
An internal value store for NPCs where they can pass temporary values between systems and core components using named slots mapped to integer indices.
Since:
2021/03/04
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, ValueStore> getComponentType()
    • readString

      public String readString(int slot)
    • storeString

      public void storeString(int slot, String value)
    • readInt

      public int readInt(int slot)
    • storeInt

      public void storeInt(int slot, int value)
    • readDouble

      public double readDouble(int slot)
    • storeDouble

      public void storeDouble(int slot, double value)
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.