Interface EntityPropertyRegistry


public interface EntityPropertyRegistry
Class responsible for providing entity property keys Some property keys are only registered in certain situations for example different minecraft versions
  • Method Details

    • getAll

      Returns:
      All of the possible property keys
    • getByName

      EntityProperty<?> getByName(String name)
      Get a property key by it's name
      Parameters:
      name - The name of a property key
      Returns:
      The property key corresponding to the name or null if there is none
    • getByName

      <T> EntityProperty<T> getByName(String name, Class<T> type)
      Get a property key by it's name and automatically cast the property to the proper type If you don't know the type of the property you are requesting use getByName(String) instead
      Type Parameters:
      T - The expected type of the returned property key
      Parameters:
      name - The name of a property key
      type - The class of the expected type of the returned property key
      Returns:
      The property key corresponding to the name
    • registerDummy

      void registerDummy(String name, Class<?> type)
      Register a dummy property that can be used to store unique information per npc
      Parameters:
      name - The name of the new property
      type - The type of the new property