Package logisticspipes.interfaces

Examples of logisticspipes.interfaces.IRotationProvider


    return new RequestRotationPacket(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    IRotationProvider tile = this.getTile(player.worldObj, IRotationProvider.class);
    if(tile != null) {
      MainProxy.sendPacketToPlayer(PacketHandler.getPacket(Rotation.class).setInteger(tile.getRotation()).setPosX(getPosX()).setPosY(getPosY()).setPosZ(getPosZ()), player);
    }
  }
View Full Code Here


    return new Rotation(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    IRotationProvider tile = this.getTile(player.worldObj, IRotationProvider.class);
    if(tile instanceof IRotationProvider) {
      tile.setRotation(getInteger());
      FMLClientHandler.instance().getClient().theWorld.markBlockForUpdate(getPosX(), getPosY(), getPosZ());
    }
  }
View Full Code Here

TOP

Related Classes of logisticspipes.interfaces.IRotationProvider

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.