mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
quick fix : Explicit type can be replaced with <>
This commit is contained in:
1 parent
66ba36d6a0
commit
4dc089061c
55 files changed
+132
-132
No files matched your search
@@ -45,7 +45,7 @@ public class TConstructRegistry {
|
||||
* chiselHead scytheBlade, broadAxeHead, excavatorHead, largeSwordBlade,
|
||||
* hammerHead bowstring, fletching, arrowhead
|
||||
*/
|
||||
public static HashMap<String, Item> itemDirectory = new HashMap<String, Item>();
|
||||
public static HashMap<String, Item> itemDirectory = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Adds an item to the directory
|
||||
@@ -95,7 +95,7 @@ public class TConstructRegistry {
|
||||
* scytheHead, excavatorHead, largeBlade, hammerHead, fullGuard, bowString,
|
||||
* fletching, arrowHead
|
||||
*/
|
||||
static HashMap<String, ItemStack> itemstackDirectory = new HashMap<String, ItemStack>();
|
||||
static HashMap<String, ItemStack> itemstackDirectory = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Adds an itemstack to the directory
|
||||
@@ -126,7 +126,7 @@ public class TConstructRegistry {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static ArrayList<ToolCore> tools = new ArrayList<ToolCore>(20);
|
||||
public static ArrayList<ToolCore> tools = new ArrayList<>(20);
|
||||
|
||||
// Parts
|
||||
|
||||
@@ -134,7 +134,7 @@ public class TConstructRegistry {
|
||||
* List: Item ID, metadata, material ID ItemStack: Output. Ex: Cactus
|
||||
* Binding
|
||||
*/
|
||||
public static HashMap<List, ItemStack> patternPartMapping = new HashMap<List, ItemStack>();
|
||||
public static HashMap<List, ItemStack> patternPartMapping = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Maps an item and a material ID to an output part
|
||||
@@ -197,10 +197,10 @@ public class TConstructRegistry {
|
||||
}
|
||||
|
||||
// Materials
|
||||
public static HashMap<Integer, ToolMaterial> toolMaterials = new HashMap<Integer, ToolMaterial>(40);
|
||||
public static HashMap<String, ToolMaterial> toolMaterialStrings = new HashMap<String, ToolMaterial>(40);
|
||||
public static List<Integer> defaultToolPartMaterials = new LinkedList<Integer>();
|
||||
public static List<Integer> defaultShardMaterials = new LinkedList<Integer>();
|
||||
public static HashMap<Integer, ToolMaterial> toolMaterials = new HashMap<>(40);
|
||||
public static HashMap<String, ToolMaterial> toolMaterialStrings = new HashMap<>(40);
|
||||
public static List<Integer> defaultToolPartMaterials = new LinkedList<>();
|
||||
public static List<Integer> defaultShardMaterials = new LinkedList<>();
|
||||
|
||||
public static void addDefaultToolPartMaterial(int materialID) {
|
||||
if (!toolMaterials.containsKey(materialID))
|
||||
@@ -465,7 +465,7 @@ public class TConstructRegistry {
|
||||
}
|
||||
|
||||
// Bow materials
|
||||
public static HashMap<Integer, BowMaterial> bowMaterials = new HashMap<Integer, BowMaterial>(40);
|
||||
public static HashMap<Integer, BowMaterial> bowMaterials = new HashMap<>(40);
|
||||
|
||||
@Deprecated
|
||||
public static void addBowMaterial(int materialID, int durability, int drawSpeed, float speedMax) {
|
||||
@@ -488,7 +488,7 @@ public class TConstructRegistry {
|
||||
return bowMaterials.get(materialID);
|
||||
}
|
||||
|
||||
public static HashMap<Integer, ArrowMaterial> arrowMaterials = new HashMap<Integer, ArrowMaterial>(40);
|
||||
public static HashMap<Integer, ArrowMaterial> arrowMaterials = new HashMap<>(40);
|
||||
|
||||
@Deprecated
|
||||
public static void addArrowMaterial(int materialID, float mass, float breakChance, float accuracy) {
|
||||
@@ -513,7 +513,7 @@ public class TConstructRegistry {
|
||||
}
|
||||
|
||||
// Custom materials - bowstrings, fletching, etc
|
||||
public static ArrayList<CustomMaterial> customMaterials = new ArrayList<CustomMaterial>();
|
||||
public static ArrayList<CustomMaterial> customMaterials = new ArrayList<>();
|
||||
|
||||
public static void addCustomMaterial(CustomMaterial mat) {
|
||||
if (mat != null) customMaterials.add(mat);
|
||||
@@ -658,8 +658,8 @@ public class TConstructRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
public static ArrayList<ActiveToolMod> activeModifiers = new ArrayList<ActiveToolMod>();
|
||||
public static LinkedList<ActiveArmorMod> activeArmorModifiers = new LinkedList<ActiveArmorMod>();
|
||||
public static ArrayList<ActiveToolMod> activeModifiers = new ArrayList<>();
|
||||
public static LinkedList<ActiveArmorMod> activeArmorModifiers = new LinkedList<>();
|
||||
|
||||
public static void registerActiveToolMod(ActiveToolMod mod) {
|
||||
activeModifiers.add(mod);
|
||||
|
||||
Reference in new issue
Block a user