mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 06:29:41 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -6,40 +6,40 @@ 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));
|
||||
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 c = 0; c < 4; c++) {
|
||||
for (int c = 0; c < 4; c++) {
|
||||
for (int r = 0; r < 9; r++) {
|
||||
addSlotToContainer(new Slot(npc.inventory, c*9 + r + 7, 191 + (c%2)*90, 16 + r * 21));
|
||||
addSlotToContainer(new Slot(npc.inventory, c * 9 + r + 7, 191 + (c % 2) * 90, 16 + r * 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 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));
|
||||
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){
|
||||
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int i) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user