mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +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
@@ -15,12 +15,12 @@ public class EnvironmentChecks {
|
||||
* logs if so. Note: This code adds additional data to crashlogs. It does
|
||||
* not trigger any crashes.
|
||||
*/
|
||||
private static List<String> incompatibilities = new ArrayList<String>();
|
||||
private static List<String> incompatibilities = new ArrayList<>();
|
||||
|
||||
private static EnvironmentChecks instance = new EnvironmentChecks();
|
||||
|
||||
public static void verifyEnvironmentSanity() {
|
||||
List<String> modIds = new ArrayList<String>();
|
||||
List<String> modIds = new ArrayList<>();
|
||||
|
||||
// Bukkit/Magic Launcher/Optifine are caught by Mantle, so we no longer
|
||||
// check for those.
|
||||
|
||||
@@ -102,9 +102,9 @@ public final class IMCHandler {
|
||||
PatternBuilder.instance.registerFullMaterial(
|
||||
item, value, TConstructRegistry.getMaterial(matID).materialName, shard, rod, matID);
|
||||
|
||||
List<Item> addItems = new LinkedList<Item>();
|
||||
List<Integer> addMetas = new LinkedList<Integer>();
|
||||
List<ItemStack> addOUtputs = new LinkedList<ItemStack>();
|
||||
List<Item> addItems = new LinkedList<>();
|
||||
List<Integer> addMetas = new LinkedList<>();
|
||||
List<ItemStack> addOUtputs = new LinkedList<>();
|
||||
|
||||
// add mappings for everything that has stone tool mappings
|
||||
for (Map.Entry<List, ItemStack> mappingEntry : TConstructRegistry.patternPartMapping.entrySet()) {
|
||||
@@ -161,7 +161,7 @@ public final class IMCHandler {
|
||||
}
|
||||
|
||||
// we add the toolpart to all smeltery recipies that use iron and create a toolpart
|
||||
List<CastingRecipe> newRecipies = new LinkedList<CastingRecipe>();
|
||||
List<CastingRecipe> newRecipies = new LinkedList<>();
|
||||
for (CastingRecipe recipe : TConstructRegistry.getTableCasting().getCastingRecipes()) {
|
||||
if (recipe.castingMetal.getFluid() != TinkerSmeltery.moltenIronFluid) continue;
|
||||
if (recipe.cast == null || !(recipe.cast.getItem() instanceof IPattern)) continue;
|
||||
|
||||
@@ -7,8 +7,8 @@ import net.minecraftforge.common.config.Configuration;
|
||||
import tconstruct.TConstruct;
|
||||
|
||||
public class DimensionBlacklist {
|
||||
public static ArrayList<Integer> blacklistedDims = new ArrayList<Integer>();
|
||||
public static ArrayList<Integer> noPoolDims = new ArrayList<Integer>();
|
||||
public static ArrayList<Integer> blacklistedDims = new ArrayList<>();
|
||||
public static ArrayList<Integer> noPoolDims = new ArrayList<>();
|
||||
|
||||
public static int promisedLandDimensionID = -100;
|
||||
public static int twilightForestDimensionID = -100;
|
||||
|
||||
@@ -23,7 +23,7 @@ import net.minecraft.network.*;
|
||||
public class PacketPipeline extends MessageToMessageCodec<FMLProxyPacket, AbstractPacket> {
|
||||
|
||||
private EnumMap<Side, FMLEmbeddedChannel> channels;
|
||||
private LinkedList<Class<? extends AbstractPacket>> packets = new LinkedList<Class<? extends AbstractPacket>>();
|
||||
private LinkedList<Class<? extends AbstractPacket>> packets = new LinkedList<>();
|
||||
private boolean isPostInitialised = false;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user