return new DiscContent(getId());
}
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe tile = this.getPipe(player.worldObj);
if(tile == null) {
return;
}
if(tile.pipe instanceof PipeItemsRequestLogisticsMk2) {
if(MainProxy.isServer(tile.getWorld())) {
if(((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk() != null && ((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
if(getStack() != null && getStack().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
((PipeItemsRequestLogisticsMk2)tile.pipe).getDisk().setTagCompound(getStack().getTagCompound());
}
}
} else {
((PipeItemsRequestLogisticsMk2)tile.pipe).setDisk(getStack());
}
}
if(tile.pipe instanceof PipeBlockRequestTable) {
if(MainProxy.isServer(tile.getWorld())) {
if(((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0) != null && ((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0).getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
if(getStack() != null && getStack().getItem().equals(LogisticsPipes.LogisticsItemDisk)) {
((PipeBlockRequestTable)tile.pipe).diskInv.getStackInSlot(0).setTagCompound(getStack().getTagCompound());
}
}