Class EntityType

java.lang.Object
com.sk89q.worldedit.world.entity.EntityType
All Implemented Interfaces:
RegistryItem, Keyed

public class EntityType extends Object implements RegistryItem, Keyed
  • Field Details

  • Constructor Details

    • EntityType

      public EntityType(String id)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Keyed
      The id of this object in the registry. Must be unique, and lowercase. Certain registries (e.g Namespaced ones) may have additional restrictions.
      Specified by:
      getId in interface Keyed
      Returns:
      an id
    • setInternalId

      public void setInternalId(int internalId)
      Specified by:
      setInternalId in interface RegistryItem
    • getInternalId

      public int getInternalId()
      Specified by:
      getInternalId in interface RegistryItem
    • getName

      public String getName()
      Gets the name of this item, or the ID if the name cannot be found.
      Returns:
      The name, or ID
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object