Exemplo n.º 1
0
 public BasicWorld(
     MinecraftBot bot, WorldType type, Dimension dimension, Difficulty difficulty, int height) {
   this.bot = bot;
   this.type = type;
   this.height = height;
   this.dimension = dimension;
   this.difficulty = difficulty;
   chunks = new HashMap<ChunkLocation, Chunk>();
   entities = new ArrayList<Entity>();
   pathFinder = new AStarPathSearchProvider(this);
   EventManager eventManager = bot.getEventManager();
   eventManager.registerListener(this);
 }
Exemplo n.º 2
0
 @Override
 public void destroy() {
   EventManager eventManager = bot.getEventManager();
   eventManager.unregisterListener(this);
 }