mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
quick fix : Explicit type can be replaced with <>
This commit is contained in:
1 parent
7abe2f5182
commit
60f7add07f
55 files changed
+132
-132
No files matched your search
@@ -10,7 +10,7 @@ public abstract class ItemModTypeFilter extends ItemModifier {
|
||||
public ItemModTypeFilter(int effect, String dataKey, ItemStack[] items, int[] values) {
|
||||
super(items, effect, dataKey);
|
||||
assert items.length == values.length : "Itemstacks and their values for tool modifiers must be the same length";
|
||||
this.increase = new ArrayList<Integer>();
|
||||
this.increase = new ArrayList<>();
|
||||
for (int i = 0; i < values.length; i++) {
|
||||
increase.add(values[i]);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ModAmmoRestock extends ItemModifier {
|
||||
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
||||
// correct material?
|
||||
|
||||
Set<Integer> materials = new HashSet<Integer>();
|
||||
Set<Integer> materials = new HashSet<>();
|
||||
materials.add(tags.getInteger("Head"));
|
||||
// shuriken allow all their components
|
||||
if (tool.getItem() instanceof Shuriken) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import tconstruct.util.config.PHConstruct;
|
||||
/* TE3 support */
|
||||
|
||||
public class ModFlux extends ModBoolean {
|
||||
public ArrayList<ItemStack> batteries = new ArrayList<ItemStack>();
|
||||
public ArrayList<ItemStack> batteries = new ArrayList<>();
|
||||
public int modifiersRequired = 1; // LALALALA totally not hidden IguanaTweaks Support LALALALA
|
||||
|
||||
public ModFlux() {
|
||||
|
||||
Reference in new issue
Block a user