mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 21:09:51 +00:00
Code cleanup and remove some unused code
This commit is contained in:
1 parent
f0f8c9a984
commit
fdf3493ed0
295 files changed
+899
-2840
No files matched your search
@@ -103,13 +103,13 @@ public class ItemLetter extends ItemInventoried {
|
||||
return icons[size.ordinal()][state.ordinal()];
|
||||
}
|
||||
|
||||
public static int encodeMeta(LetterState state, LetterSize size) {
|
||||
private static int encodeMeta(LetterState state, LetterSize size) {
|
||||
int meta = size.ordinal() << 4;
|
||||
meta |= state.ordinal();
|
||||
return meta;
|
||||
}
|
||||
|
||||
public static LetterState getState(int meta) {
|
||||
private static LetterState getState(int meta) {
|
||||
int ordinal = meta & 0x0f;
|
||||
LetterState[] values = LetterState.values();
|
||||
if (ordinal >= values.length) {
|
||||
@@ -118,7 +118,7 @@ public class ItemLetter extends ItemInventoried {
|
||||
return values[ordinal];
|
||||
}
|
||||
|
||||
public static LetterSize getSize(int meta) {
|
||||
private static LetterSize getSize(int meta) {
|
||||
int ordinal = meta >> 4;
|
||||
LetterSize[] values = LetterSize.values();
|
||||
if (ordinal >= values.length) {
|
||||
@@ -127,7 +127,7 @@ public class ItemLetter extends ItemInventoried {
|
||||
return values[ordinal];
|
||||
}
|
||||
|
||||
public static LetterSize getSize(ILetter letter) {
|
||||
private static LetterSize getSize(ILetter letter) {
|
||||
int count = letter.countAttachments();
|
||||
|
||||
if (count > 5) {
|
||||
|
||||
Reference in new issue
Block a user