mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : 'static' method declared 'final'
This commit is contained in:
1 parent
a2295f380e
commit
5a1c3a4dfd
3 files changed
+6
-6
No files matched your search
@@ -108,11 +108,11 @@ public class TPlayerStats
|
||||
}
|
||||
}
|
||||
|
||||
public static final void register(EntityPlayer player) {
|
||||
public static void register(EntityPlayer player) {
|
||||
player.registerExtendedProperties(TPlayerStats.PROP_NAME, new TPlayerStats(player));
|
||||
}
|
||||
|
||||
public static final TPlayerStats get(EntityPlayer player) {
|
||||
public static TPlayerStats get(EntityPlayer player) {
|
||||
return (TPlayerStats) player.getExtendedProperties(PROP_NAME);
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ public abstract class Behavior {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static final int arrayIndexOfStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
public static int arrayIndexOfStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
Iterator<ItemStack> i1 = stacks.iterator();
|
||||
|
||||
int index = 0;
|
||||
@@ -188,7 +188,7 @@ public abstract class Behavior {
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static final boolean arrayContainsEqualStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
public static boolean arrayContainsEqualStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
for (ItemStack stack : stacks) {
|
||||
if (stack.isItemEqual(item)) {
|
||||
return true;
|
||||
|
||||
+2
-2
@@ -77,11 +77,11 @@ public abstract class SpecialStackHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public static final int arrayIndexOfStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
public static int arrayIndexOfStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
return Behavior.arrayIndexOfStack(stacks, item);
|
||||
}
|
||||
|
||||
public static final boolean arrayContainsEqualStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
public static boolean arrayContainsEqualStack(ArrayList<ItemStack> stacks, ItemStack item) {
|
||||
return Behavior.arrayContainsEqualStack(stacks, item);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user