Package org.bukkit.block

Examples of org.bukkit.block.CreatureSpawner.update()


    Block block = getActualBlock(x, y, z);
    if (BlackMagic.setBlockType(block, Material.MOB_SPAWNER)) {
      if (block.getType() == Material.MOB_SPAWNER) {
        CreatureSpawner spawner = (CreatureSpawner) block.getState();
        spawner.setSpawnedType(aType);
        spawner.update(true);
      }
    }
  }
 
  public final void setWallSign(int x, int y, int z, Direction.General direction, String[] text) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.