Package org.spout.vanilla.component.block.material

Examples of org.spout.vanilla.component.block.material.Skull


  @Override
  public void onPlacement(Block block, short data, BlockFace against, Vector3f clickedPos, boolean isClickedBlock, Cause<?> cause) {
    super.onPlacement(block, data, against, clickedPos, isClickedBlock, cause);
    this.setAttachedFace(block, against, cause);
    if (against == BlockFace.BOTTOM || against == BlockFace.TOP) {
      Skull skull = block.get(Skull.class);
      skull.setRotation(PlayerUtil.getYaw(cause));
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.component.block.material.Skull

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.