Class EntityMemories

java.lang.Object
me.gamercoder215.mobchip.ai.memories.EntityMemories

public final class EntityMemories extends Object
Utility class for Entity Memories
  • Method Details

    • registerMemory

      public static boolean registerMemory(@NotNull @NotNull Memory<?> memory) throws IllegalArgumentException
      Registers a new memory in the registry.
      Parameters:
      memory - Memory to register
      Returns:
      true if memory was registered, false if memory already exists
      Throws:
      IllegalArgumentException - if memory is null
    • doesMemoryExist

      public static boolean doesMemoryExist(@NotNull @NotNull Memory<?> memory)
      Whether this entity has the given memory.
      Parameters:
      memory - Memory to check
      Returns:
      true if memory exists, false if memory does not exist