Class ValueStore
java.lang.Object
com.hypixel.hytale.server.npc.valuestore.ValueStore
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[]private final int[]private final String[]Fields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
stringValues
-
intValues
@Nonnull private final int[] intValues -
doubleValues
@Nonnull private final double[] doubleValues
-
-
Constructor Details
-
ValueStore
private ValueStore(int stringCount, int intCount, int doubleCount)
-
-
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>- Overrides:
clonein classObject
-