mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 15:33:03 +00:00
Smeltery Fixes
This commit is contained in:
1 parent
a2ae40c930
commit
41a0e80078
21 files changed
+1225
-272
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package mods.tinker.tconstruct.container;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import mods.tinker.tconstruct.logic.SmelteryLogic;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
public class ActiveContainer extends Container
|
||||
{
|
||||
public List<ActiveSlot> activeInventorySlots = new ArrayList<ActiveSlot>();
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith (EntityPlayer entityplayer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected ActiveSlot addDualSlotToContainer (ActiveSlot slot)
|
||||
{
|
||||
slot.activeSlotNumber = this.activeInventorySlots.size();
|
||||
this.activeInventorySlots.add(slot);
|
||||
this.addSlotToContainer(slot);
|
||||
return slot;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user