Exemple #1
0
 public void update() {
   if (world != null) {
     g = world.getData(x, y, z);
     world.b(x, y, z, this);
     if (q() != Blocks.AIR) {
       world.updateAdjacentComparators(x, y, z, q());
     }
     // Spigot start - Called when the contents have changed, so hoppers around this
     // tile need updating.
     scheduleTicks();
     // Spigot end
   }
 }