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

public abstract class PersistentParameter<Type> extends Object
A parameter that is persistent and stored with the entity.
  • 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 - The ComponentAccessor<EntityStore> for component access.