use of org.bukkit.material.Dirt in project Glowstone by GlowstoneMC.
the class MegaJungleTree method generateDirtBelowTrunk.
protected void generateDirtBelowTrunk() {
// SELF, SOUTH, EAST, SOUTH EAST
Dirt dirt = new Dirt(DirtType.NORMAL);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ(), Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ() + 1, Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX() + 1, loc.getBlockY() - 1, loc.getBlockZ(), Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX() + 1, loc.getBlockY() - 1, loc.getBlockZ() + 1, Material.DIRT, dirt);
}
use of org.bukkit.material.Dirt in project Glowstone by GlowstoneMC.
the class MegaPineTree method generateDirtBelowTrunk.
@Override
protected void generateDirtBelowTrunk() {
// SELF, SOUTH, EAST, SOUTH EAST
Dirt dirt = new Dirt(DirtType.PODZOL);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ(), Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ() + 1, Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX() + 1, loc.getBlockY() - 1, loc.getBlockZ(), Material.DIRT, dirt);
delegate.setTypeAndData(loc.getWorld(), loc.getBlockX() + 1, loc.getBlockY() - 1, loc.getBlockZ() + 1, Material.DIRT, dirt);
}
Aggregations