Contents
Class ValueStore
java.lang.Object
com.hypixel.hytale.server.npc.valuestore.ValueStore
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<EntityStore, ValueStore> doublereadDouble(int slot) intreadInt(int slot) readString(int slot) voidstoreDouble(int slot, double value) voidstoreInt(int slot, int value) voidstoreString(int slot, String value) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Method Details
-
getComponentType
-
readString
-
storeString
-
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
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-