mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
Compare commits
3 Commits
775126f0ba
...
9d7b7ca3bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d7b7ca3bc | ||
|
|
2e3a6cb086 | ||
|
|
8113546777 |
@ -342,23 +342,8 @@ public abstract class GuiInfoContainer extends GuiContainer implements INEIGuiHa
|
|||||||
@Optional.Method(modid = "NotEnoughItems")
|
@Optional.Method(modid = "NotEnoughItems")
|
||||||
public boolean handleDragNDrop(GuiContainer gui, int x, int y, ItemStack stack, int button) {
|
public boolean handleDragNDrop(GuiContainer gui, int x, int y, ItemStack stack, int button) {
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
// BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD! BALD!
|
|
||||||
|
|
||||||
/*if(gui instanceof GuiInfoContainer && stack != null){
|
if(gui instanceof GuiInfoContainer && stack != null){
|
||||||
Slot slot = getSlotAtPosition(x,y);
|
Slot slot = getSlotAtPosition(x,y);
|
||||||
if(slot instanceof SlotPattern){
|
if(slot instanceof SlotPattern){
|
||||||
if(inventorySlots instanceof ContainerBase) {
|
if(inventorySlots instanceof ContainerBase) {
|
||||||
@ -374,7 +359,7 @@ public abstract class GuiInfoContainer extends GuiContainer implements INEIGuiHa
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//all credits for impl to GTNH's EnderCore fork
|
//all credits for impl to GTNH's EnderCore fork
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package com.hbm.tileentity.network.pneumatic;
|
package com.hbm.tileentity.network.pneumatic;
|
||||||
|
|
||||||
|
|
||||||
import com.hbm.interfaces.IControlReceiver;
|
import com.hbm.interfaces.IControlReceiver;
|
||||||
import com.hbm.inventory.container.ContainerPneumoStorageExporter;
|
import com.hbm.inventory.container.ContainerPneumoStorageExporter;
|
||||||
import com.hbm.inventory.gui.GUIPneumoStorageExporter;
|
import com.hbm.inventory.gui.GUIPneumoStorageExporter;
|
||||||
@ -318,6 +317,15 @@ public class TileEntityPneumoStorageExporter extends TileEntityPneumaticMachineB
|
|||||||
@Override
|
@Override
|
||||||
public void nextMode(int i) { }
|
public void nextMode(int i) { }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setFilterContents(NBTTagCompound nbt) {
|
||||||
|
int slot = nbt.getInteger("slot");
|
||||||
|
NBTTagCompound stack = nbt.getCompoundTag("stack");
|
||||||
|
ItemStack item = ItemStack.loadItemStackFromNBT(stack);
|
||||||
|
this.setInventorySlotContents(slot, item);
|
||||||
|
this.markChanged();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getFunctionInfo() {
|
public String[] getFunctionInfo() {
|
||||||
return new String[] {
|
return new String[] {
|
||||||
|
|||||||
@ -69,6 +69,15 @@ public class TileEntityPneumoStorageMono extends TileEntityPneumaticStorageBase
|
|||||||
@Override public long getAmountAt(int index) { return amounts[index]; }
|
@Override public long getAmountAt(int index) { return amounts[index]; }
|
||||||
@Override public boolean allowTypeSetting() { return false; }
|
@Override public boolean allowTypeSetting() { return false; }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void receiveControl(NBTTagCompound data) {
|
||||||
|
super.receiveControl(data);
|
||||||
|
|
||||||
|
if(data.hasKey("slot")){
|
||||||
|
setFilterContents(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long useUpItem(int index, long amount) {
|
public long useUpItem(int index, long amount) {
|
||||||
if(amounts[index] <= 0) return amount;
|
if(amounts[index] <= 0) return amount;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user