mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Minor Cleanup
Fix up some null checks Clean up redundant array creation to varargs parameter Remove redundant type casts Simplify arithmetic Use foreach loops Remove unused code Minor cleanup
This commit is contained in:
1 parent
05a7ac6d93
commit
3884fecf77
222 files changed
+695
-1079
No files matched your search
@@ -27,8 +27,8 @@ import org.apache.commons.lang3.StringUtils;
|
||||
public class Letter implements ILetter, INBTTagable {
|
||||
|
||||
// CONSTANTS
|
||||
public static short SLOT_ATTACHMENT_1 = 0;
|
||||
public static short SLOT_POSTAGE_1 = 18;
|
||||
public static final short SLOT_ATTACHMENT_1 = 0;
|
||||
public static final short SLOT_POSTAGE_1 = 18;
|
||||
|
||||
private boolean isProcessed = false;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class Letter implements ILetter, INBTTagable {
|
||||
private IMailAddress[] recipient;
|
||||
|
||||
private String text;
|
||||
private InventoryAdapter inventory = new InventoryAdapter(22, "INV");
|
||||
private final InventoryAdapter inventory = new InventoryAdapter(22, "INV");
|
||||
|
||||
public Letter(IMailAddress sender, IMailAddress recipient) {
|
||||
this.sender = sender;
|
||||
@@ -125,10 +125,6 @@ public class Letter implements ILetter, INBTTagable {
|
||||
inventory.setInventorySlotContents(i, null);
|
||||
}
|
||||
|
||||
public void setInventory(InventoryAdapter inventory) {
|
||||
this.inventory = inventory;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProcessed(boolean flag) {
|
||||
this.isProcessed = flag;
|
||||
|
||||
Reference in new issue
Block a user