1.7.10 Files

Files added
This commit is contained in:
KAMKEEL committed 2018-09-13 12:03:28 -04:00
1 parent 393ea9b463
commit a31efb2dc3
1768 files changed
+84831

No files matched your search

@@ -0,0 +1,44 @@
package noppes.npcs.containers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import noppes.npcs.entity.EntityNPCInterface;
public class ContainerNPCInv extends Container{
public ContainerNPCInv(EntityNPCInterface npc,EntityPlayer player){
for(int l = 0; l < 4; l++){
addSlotToContainer(new SlotNPCArmor(npc.inventory, l, 9, 22 + l * 18,l));
}
addSlotToContainer(new Slot(npc.inventory, 4, 81, 22));
addSlotToContainer(new Slot(npc.inventory, 5, 81, 40));
addSlotToContainer(new Slot(npc.inventory, 6, 81, 58));
for(int l = 0; l < 9; l++){
addSlotToContainer(new Slot(npc.inventory, l + 7 , 191 , 16 + l * 21));
}
for(int i1 = 0; i1 < 3; i1++){
for(int l1 = 0; l1 < 9; l1++){
addSlotToContainer(new Slot(player.inventory, l1 + i1 * 9 + 9, l1 * 18 + 8, 113 + i1 * 18));
}
}
for(int j1 = 0; j1 < 9; j1++){
addSlotToContainer(new Slot(player.inventory, j1, j1 * 18 + 8, 171));
}
}
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int i){
return null;
}
@Override
public boolean canInteractWith(EntityPlayer entityplayer) {
return true;
}
}