Full Imports and Code Format Optimization

This commit is contained in:
Kam committed 2025-03-12 20:12:01 -04:00
1 parent 250edf099c
commit 6815f579a7
1192 files changed
+60344 -62167

No files matched your search

@@ -7,45 +7,42 @@ import net.minecraft.item.ItemStack;
import noppes.npcs.entity.EntityNPCInterface;
import noppes.npcs.roles.RoleTrader;
public class ContainerNPCTraderSetup extends Container
{
public RoleTrader role;
public class ContainerNPCTraderSetup extends Container {
public RoleTrader role;
public ContainerNPCTraderSetup(EntityNPCInterface npc,EntityPlayer player)
{
public ContainerNPCTraderSetup(EntityNPCInterface npc, EntityPlayer player) {
role = (RoleTrader) npc.roleInterface;
for(int i = 0; i < 18; i++)
{
int x = 7;
x += i%3 * 94;
int y = 15;
y += i/3 * 22;
addSlotToContainer(new Slot(role.inventoryCurrency, i + 18, x, y));
addSlotToContainer(new Slot(role.inventoryCurrency, i, x + 18, y));
addSlotToContainer(new Slot(role.inventorySold, i, x + 43, y));
}
for (int i = 0; i < 18; i++) {
int x = 7;
x += i % 3 * 94;
int y = 15;
y += i / 3 * 22;
addSlotToContainer(new Slot(role.inventoryCurrency, i + 18, x, y));
addSlotToContainer(new Slot(role.inventoryCurrency, i, x + 18, y));
addSlotToContainer(new Slot(role.inventorySold, i, x + 43, y));
for(int i1 = 0; i1 < 3; i1++){
for(int l1 = 0; l1 < 9; l1++){
addSlotToContainer(new Slot(player.inventory, l1 + i1 * 9 + 9, 48 + l1 * 18, 147 + 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, 48 + l1 * 18, 147 + i1 * 18));
}
}
for(int j1 = 0; j1 < 9; j1++){
addSlotToContainer(new Slot(player.inventory, j1, 48 + j1 * 18, 205));
for (int j1 = 0; j1 < 9; j1++) {
addSlotToContainer(new Slot(player.inventory, j1, 48 + j1 * 18, 205));
}
}
@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;
}
}