注册表
WorldEdit 使用注册表管理方块、实体等游戏对象。
方块注册表
// 获取方块类型
BlockType type = BlockTypes.STONE;
// 获取所有方块类型
Iterable<BlockType> types = BlockTypes.getAll();
实体注册表
// 获取实体类型
EntityType type = EntityTypes.ZOMBIE;
// 获取所有实体类型
Iterable<EntityType> types = EntityTypes.getAll();