use of logisticspipes.utils.gui.DummySlot in project LogisticsPipes by RS485.
the class DummyContainerSlotClick method processPacket.
@Override
public void processPacket(EntityPlayer player) {
if (player instanceof EntityPlayerMP && ((EntityPlayerMP) player).openContainer instanceof DummyContainer) {
DummyContainer container = (DummyContainer) ((EntityPlayerMP) player).openContainer;
Slot slot = (Slot) container.inventorySlots.get(slotId);
if (slot instanceof DummySlot || slot instanceof ColorSlot || slot instanceof FluidSlot) {
container.handleDummyClick(slot, slotId, stack, button, 0, player);
}
}
}
Aggregations