Class NullEntityRegistry

java.lang.Object
com.sk89q.worldedit.world.registry.NullEntityRegistry
All Implemented Interfaces:
EntityRegistry

public class NullEntityRegistry extends Object implements EntityRegistry
An implementation of an entity registry that knows nothing.
  • Constructor Details

    • NullEntityRegistry

      public NullEntityRegistry()
  • Method Details

    • createFromId

      @Nullable public BaseEntity createFromId(String id)
      Description copied from interface: EntityRegistry
      Create a new entity using its ID.
      Specified by:
      createFromId in interface EntityRegistry
      Parameters:
      id - the id
      Returns:
      the entity, which may be null if the entity does not exist