Contents
Class PersistentParameter<Type>
java.lang.Object
com.hypixel.hytale.server.npc.storage.PersistentParameter<Type>
- Type Parameters:
Type- The type of the parameter.
- Direct Known Subclasses:
Alarm
A parameter that is persistent and stored with the entity.
-
Method Summary
Modifier and TypeMethodDescriptionvoidset(Ref<EntityStore> ownerRef, Type value, ComponentAccessor<EntityStore> componentAccessor) Sets the value of this parameter and marks the chunk dirty.
-
Method Details
-
set
public void set(@Nonnull Ref<EntityStore> ownerRef, @Nullable Type value, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Sets the value of this parameter and marks the chunk dirty.- Parameters:
ownerRef- The entity reference that owns this parameter.value- The value to set.componentAccessor- TheComponentAccessor<EntityStore>for component access.
-