Package logisticspipes.network.packets.pipe

Source Code of logisticspipes.network.packets.pipe.RequestSignPacket

package logisticspipes.network.packets.pipe;

import logisticspipes.network.abstractpackets.CoordinatesPacket;
import logisticspipes.network.abstractpackets.ModernPacket;
import logisticspipes.pipes.basic.CoreRoutedPipe;
import logisticspipes.pipes.basic.LogisticsTileGenericPipe;
import net.minecraft.entity.player.EntityPlayer;

public class RequestSignPacket extends CoordinatesPacket {
 
  public RequestSignPacket(int id) {
    super(id);
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = this.getPipe(player.getEntityWorld());
    if(pipe == null) return;
    ((CoreRoutedPipe)pipe.pipe).sendSignData(player);
  }
 
  @Override
  public ModernPacket template() {
    return new RequestSignPacket(getId());
  }
}
TOP

Related Classes of logisticspipes.network.packets.pipe.RequestSignPacket

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.