Package org.spout.vanilla.event.material.network

Examples of org.spout.vanilla.event.material.network.BlockBreakAnimationEvent


    return isDigging;
  }

  public void onTick(float dt) {
    if (timer >= separator) {
      getOwner().getNetwork().callProtocolEvent(new BlockBreakAnimationEvent(getOwner(), diggingPosition, amount++), true);
      timer = 0;
    }
    timer += dt;
  }
View Full Code Here


    if (blockBreak) {
      setBlockBroken(getBlockBroken() + 1);
    }
    previousDiggingTime = getDiggingTime();
    isDigging = false;
    getOwner().getNetwork().callProtocolEvent(new BlockBreakAnimationEvent(getOwner(), diggingPosition, (byte) -1));

    getOwner().getNetwork().callProtocolEvent(new EntityAnimationEvent(getOwner(), Animation.NONE));
    return position.equals(diggingPosition);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.material.network.BlockBreakAnimationEvent

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.