Package Hexel.blocks.types

Examples of Hexel.blocks.types.BlockDirt


  private Vector3i tmp3i = new Vector3i();

  @Override
  public int run(int bx, int by, int bz, boolean fastMode, Block b, Chunk c,
      HighestBlockChunk hbc, Chunks chunks, int step, BlockDeltaAdder blockDeltaAdder) {
    BlockDirt bd = (BlockDirt)b;
    if (bd.hasGrass){
      if (bd.health < bd.getMaxHealth()){
        blockDeltaAdder.addBlockDelta(BlockDelta.Aquire(bx, by, bz, BlockDirt.Make(b.getHealth(), false), chunks.getStepsToSim(bx, by, bz, tmp3i, c)));
      }
      else {
        Block ab = chunks.getBlock(bx, by, bz+1, tmp3i, c);
        if (!(ab instanceof BlockEmpty) && !(ab instanceof BlockLeaf)){
View Full Code Here


  private Vector3i tmp3i = new Vector3i();

  @Override
  public boolean canApply(int bx, int by, int bz, boolean fastMode, Block b, Chunk c,
      HighestBlockChunk hbc, Chunks chunks, int step, BlockDeltaAdder blockDeltaAdder) {
    BlockDirt bd = (BlockDirt)b;
    if (bd.hasGrass)
      return false;
    Block ab = chunks.getBlock(bx, by, bz+1, tmp3i, c);
    if (!(ab instanceof BlockEmpty))
      return false;
View Full Code Here

TOP

Related Classes of Hexel.blocks.types.BlockDirt

Copyright © 2018 www.massapicom. 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.