Search in sources :

Example 11 with Dirt

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);
}
Also used : Dirt(org.bukkit.material.Dirt)

Example 12 with 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);
}
Also used : Dirt(org.bukkit.material.Dirt)

Aggregations

Dirt (org.bukkit.material.Dirt)12 Material (org.bukkit.Material)7 Block (org.bukkit.block.Block)3 BlockState (org.bukkit.block.BlockState)3 MaterialData (org.bukkit.material.MaterialData)3 GlowBlock (net.glowstone.block.GlowBlock)1 BlockFace (org.bukkit.block.BlockFace)1 DirtType (org.bukkit.material.types.DirtType)1