mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Modify GUIs for existing machines that require compressors
This commit is contained in:
parent
76ca5c0a93
commit
93f03208fa
28
src/main/java/com/hbm/inventory/SlotDeprecated.java
Normal file
28
src/main/java/com/hbm/inventory/SlotDeprecated.java
Normal file
@ -0,0 +1,28 @@
|
||||
package com.hbm.inventory;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Deprecated slots can hold items from previous versions, but are otherwise entirely uninteractable
|
||||
*/
|
||||
public class SlotDeprecated extends Slot {
|
||||
|
||||
public SlotDeprecated(IInventory inventory, int id, int x, int y) {
|
||||
super(inventory, id, x, y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack stack) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean func_111238_b() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.inventory.container;
|
||||
|
||||
import com.hbm.inventory.SlotDeprecated;
|
||||
import com.hbm.inventory.SlotTakeOnly;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.items.machine.IItemFluidIdentifier;
|
||||
@ -26,10 +27,10 @@ public class ContainerMachineHydrotreater extends Container {
|
||||
this.addSlotToContainer(new Slot(tedf, 1, 35, 90));
|
||||
//Canister Output
|
||||
this.addSlotToContainer(new SlotTakeOnly(tedf, 2, 35, 108));
|
||||
//Hydrogen Input
|
||||
this.addSlotToContainer(new Slot(tedf, 3, 53, 90));
|
||||
//Hydrogen Output
|
||||
this.addSlotToContainer(new SlotTakeOnly(tedf, 4, 53, 108));
|
||||
//Hydrogen Input (removed, requires pressurization)
|
||||
this.addSlotToContainer(new SlotDeprecated(tedf, 3, 53, 90));
|
||||
//Hydrogen Output (samesies)
|
||||
this.addSlotToContainer(new SlotDeprecated(tedf, 4, 53, 108));
|
||||
//Desulfated Oil Input
|
||||
this.addSlotToContainer(new Slot(tedf, 5, 125, 90));
|
||||
//Desulfated Oil Output
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.hbm.inventory.container;
|
||||
|
||||
import com.hbm.inventory.SlotDeprecated;
|
||||
import com.hbm.inventory.SlotTakeOnly;
|
||||
import com.hbm.tileentity.machine.oil.TileEntityMachineVacuumDistill;
|
||||
|
||||
@ -20,10 +21,10 @@ public class ContainerMachineVacuumDistill extends Container {
|
||||
|
||||
//Battery
|
||||
this.addSlotToContainer(new Slot(tedf, 0, 26, 90));
|
||||
//Canister Input
|
||||
this.addSlotToContainer(new Slot(tedf, 1, 44, 90));
|
||||
//Canister Output
|
||||
this.addSlotToContainer(new SlotTakeOnly(tedf, 2, 44, 108));
|
||||
//Canister Input (removed, requires pressurization)
|
||||
this.addSlotToContainer(new SlotDeprecated(tedf, 1, 44, 90));
|
||||
//Canister Output (same as above)
|
||||
this.addSlotToContainer(new SlotDeprecated(tedf, 2, 44, 108));
|
||||
//Heavy Oil Input
|
||||
this.addSlotToContainer(new Slot(tedf, 3, 80, 90));
|
||||
//Heavy Oil Output
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 8.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 6.5 KiB |
Loading…
x
Reference in New Issue
Block a user