mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-16 18:55:06 +00:00
The great format and clean up. IMPORTANT: Read below.
All devs and contributors should use the provided formatter settings. If your IDE does not support the format, the rules are simple, it is the default java formatting rules, with 200char line lengths and 1 extra line after class definitions.
This commit is contained in:
1 parent
06c5f5930f
commit
82792ed22e
136 files changed
+10365
-11272
No files matched your search
@@ -5,34 +5,35 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
public class ContainerPresent extends ContainerChest {
|
||||
private IInventory lower;
|
||||
private int rows;
|
||||
|
||||
public ContainerPresent(IInventory player, IInventory chest) {
|
||||
super(player, chest);
|
||||
lower = chest;
|
||||
rows = chest.getSizeInventory() / 9;
|
||||
chest.openInventory();
|
||||
int a = (rows - 4) * 18;
|
||||
private IInventory lower;
|
||||
private int rows;
|
||||
|
||||
for (int d = 0; d < rows; d++) {
|
||||
for (int e = 0; e < 9; e++) {
|
||||
addSlotToContainer(new Slot(chest, e + d * 9, 8 + e * 18, 18 + d * 18));
|
||||
}
|
||||
}
|
||||
public ContainerPresent(IInventory player, IInventory chest) {
|
||||
super(player, chest);
|
||||
lower = chest;
|
||||
rows = chest.getSizeInventory() / 9;
|
||||
chest.openInventory();
|
||||
int a = (rows - 4) * 18;
|
||||
|
||||
for (int d = 0; d < 3; d++) {
|
||||
for (int e = 0; e < 9; e++) {
|
||||
addSlotToContainer(new Slot(player, e + d * 9 + 9, 8 + e * 18, 103 + d * 18 + a));
|
||||
}
|
||||
}
|
||||
for (int d = 0; d < rows; d++) {
|
||||
for (int e = 0; e < 9; e++) {
|
||||
addSlotToContainer(new Slot(chest, e + d * 9, 8 + e * 18, 18 + d * 18));
|
||||
}
|
||||
}
|
||||
|
||||
for (int d = 0; d < 9; d++) {
|
||||
addSlotToContainer(new Slot(player, d, 8 + d * 18, 161 + a));
|
||||
}
|
||||
}
|
||||
for (int d = 0; d < 3; d++) {
|
||||
for (int e = 0; e < 9; e++) {
|
||||
addSlotToContainer(new Slot(player, e + d * 9 + 9, 8 + e * 18, 103 + d * 18 + a));
|
||||
}
|
||||
}
|
||||
|
||||
public IInventory getLowerPresentInventory() {
|
||||
return lower;
|
||||
}
|
||||
for (int d = 0; d < 9; d++) {
|
||||
addSlotToContainer(new Slot(player, d, 8 + d * 18, 161 + a));
|
||||
}
|
||||
}
|
||||
|
||||
public IInventory getLowerPresentInventory() {
|
||||
return lower;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user