use of logisticspipes.utils.gui.ColorSlot 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 = container.inventorySlots.get(slotId);
if (slot instanceof DummySlot || slot instanceof ColorSlot || slot instanceof FluidSlot) {
container.handleDummyClick(slot, slotId, stack, button, ClickType.PICKUP, player);
}
}
}
Aggregations