Examples of ForgeDirection


Examples of net.minecraftforge.common.util.ForgeDirection

 
  @Override
  public void randomDisplayTick(World world, int x, int y, int z, Random rand) {
    TileCrusher te = (TileCrusher) world.getTileEntity(x, y, z);
    if(te != null && te.isActive()) {
      ForgeDirection front = ForgeDirection.values()[te.facing];

      for (int i = 0; i < 3; i++) {
        double px = x + 0.5 + front.offsetX * 0.51;
        double pz = z + 0.5 + front.offsetZ * 0.51;
        double py = y + world.rand.nextFloat() * 0.8f + 0.1f;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.