mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 09:24:26 +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,51 +6,46 @@ import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import noppes.npcs.controllers.data.Bank;
|
||||
|
||||
public class ContainerManageBanks extends Container
|
||||
{
|
||||
public Bank bank;
|
||||
|
||||
public ContainerManageBanks(EntityPlayer player)
|
||||
{
|
||||
bank = new Bank();
|
||||
|
||||
for(int i = 0; i < 6; i++)
|
||||
{
|
||||
int x = 36;
|
||||
int y = 38;
|
||||
y += i * 22;
|
||||
addSlotToContainer(new Slot(bank.currencyInventory, i, x, y));
|
||||
}
|
||||
|
||||
for(int i = 0; i < 6; i++)
|
||||
{
|
||||
int x = 142;
|
||||
int y = 38;
|
||||
y += i * 22;
|
||||
addSlotToContainer(new Slot(bank.upgradeInventory, i, x, y));
|
||||
}
|
||||
public class ContainerManageBanks extends Container {
|
||||
public Bank bank;
|
||||
|
||||
for(int j1 = 0; j1 < 9; j1++)
|
||||
{
|
||||
addSlotToContainer(new Slot(player.inventory, j1, 8 + j1 * 18, 171));
|
||||
public ContainerManageBanks(EntityPlayer player) {
|
||||
bank = new Bank();
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
int x = 36;
|
||||
int y = 38;
|
||||
y += i * 22;
|
||||
addSlotToContainer(new Slot(bank.currencyInventory, i, x, y));
|
||||
}
|
||||
|
||||
for (int i = 0; i < 6; i++) {
|
||||
int x = 142;
|
||||
int y = 38;
|
||||
y += i * 22;
|
||||
addSlotToContainer(new Slot(bank.upgradeInventory, i, x, y));
|
||||
}
|
||||
|
||||
for (int j1 = 0; j1 < 9; j1++) {
|
||||
addSlotToContainer(new Slot(player.inventory, j1, 8 + j1 * 18, 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;
|
||||
}
|
||||
|
||||
public void setBank(Bank bank2) {
|
||||
for(int i = 0; i< 6; i++){
|
||||
bank.currencyInventory.setInventorySlotContents(i, bank2.currencyInventory.getStackInSlot(i));
|
||||
bank.upgradeInventory.setInventorySlotContents(i, bank2.upgradeInventory.getStackInSlot(i));
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setBank(Bank bank2) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
bank.currencyInventory.setInventorySlotContents(i, bank2.currencyInventory.getStackInSlot(i));
|
||||
bank.upgradeInventory.setInventorySlotContents(i, bank2.upgradeInventory.getStackInSlot(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user