mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Initial test of Gradle (not working yet)
This commit is contained in:
1 parent
e8b7378831
commit
cb87c836c8
519 files changed
+351
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package tconstruct.inventory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
|
||||
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