Class Entity


  • public class Entity
    extends Content
    • Method Detail

      • getType

        public String getType()
        Namespaced entity ID. Will use 'minecraft:pig' if null.
      • getId

        @NonNull
        public @NonNull String getId()
        Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?
      • getName

        public BaseComponent getName()
        Name to display as the entity. This is optional and will be hidden if null.
      • setType

        public void setType​(String type)
        Namespaced entity ID. Will use 'minecraft:pig' if null.
      • setId

        public void setId​(@NonNull
                          @NonNull String id)
        Entity UUID in hyphenated hexadecimal format. Should be valid UUID. TODO : validate?
      • setName

        public void setName​(BaseComponent name)
        Name to display as the entity. This is optional and will be hidden if null.