mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +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
@@ -16,7 +16,7 @@ public class GrindableHorse implements IFactoryGrindable {
|
||||
|
||||
@Override
|
||||
public List<MobDrop> grind(World world, EntityLivingBase entity, Random random) {
|
||||
List<MobDrop> drops = new ArrayList<MobDrop>();
|
||||
List<MobDrop> drops = new ArrayList<>();
|
||||
|
||||
drops.add(new MobDrop(10, new ItemStack(TinkerTools.materials, random.nextInt(4) + 1, 36)));
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public class RecipeHandlerAlloying extends RecipeHandlerBase {
|
||||
private int minAmount;
|
||||
|
||||
public CachedAlloyingRecipe(AlloyMix recipe) {
|
||||
this.fluidTanks = new ArrayList<FluidTankElement>();
|
||||
this.fluidTanks = new ArrayList<>();
|
||||
|
||||
int maxAmount = recipe.mixers.get(0).amount;
|
||||
int mult = 1;
|
||||
|
||||
@@ -21,7 +21,7 @@ public abstract class RecipeHandlerCastingBase extends RecipeHandlerBase {
|
||||
public CachedCastingRecipe(CastingRecipe recipe) {
|
||||
this.metal = new FluidTankElement(MOLTEN_FLOW, recipe.castingMetal.amount, recipe.castingMetal);
|
||||
this.metal.flowingTexture = true;
|
||||
this.resources = new ArrayList<PositionedStack>();
|
||||
this.resources = new ArrayList<>();
|
||||
if (recipe.cast != null) {
|
||||
this.resources.add(new PositionedStack(recipe.cast, 55, 19));
|
||||
} else {
|
||||
@@ -42,7 +42,7 @@ public abstract class RecipeHandlerCastingBase extends RecipeHandlerBase {
|
||||
|
||||
@Override
|
||||
public List<FluidTankElement> getFluidTanks() {
|
||||
List<FluidTankElement> res = new ArrayList<FluidTankElement>();
|
||||
List<FluidTankElement> res = new ArrayList<>();
|
||||
res.add(this.metal);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class RecipeHandlerCastingBasin extends RecipeHandlerCastingBase {
|
||||
public List<CastingRecipe> getCastingRecipes() {
|
||||
LiquidCasting casting = TConstructRegistry.getBasinCasting();
|
||||
if (casting == null) {
|
||||
return new ArrayList<CastingRecipe>();
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return casting.getCastingRecipes();
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class RecipeHandlerCastingTable extends RecipeHandlerCastingBase {
|
||||
public List<CastingRecipe> getCastingRecipes() {
|
||||
LiquidCasting casting = TConstructRegistry.getTableCasting();
|
||||
if (casting == null) {
|
||||
return new ArrayList<CastingRecipe>();
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return casting.getCastingRecipes();
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class RecipeHandlerMelting extends RecipeHandlerBase {
|
||||
|
||||
@Override
|
||||
public List<FluidTankElement> getFluidTanks() {
|
||||
List<FluidTankElement> tanks = new ArrayList<FluidTankElement>();
|
||||
List<FluidTankElement> tanks = new ArrayList<>();
|
||||
tanks.add(this.output);
|
||||
return tanks;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class RecipeHandlerToolMaterials extends RecipeHandlerBase {
|
||||
public ArrowMaterial arrowMaterial;
|
||||
|
||||
public CachedToolMaterialsRecipe(List<ItemStack> toolParts, int materialID) {
|
||||
this.toolParts = new ArrayList<PositionedStack>();
|
||||
this.toolParts = new ArrayList<>();
|
||||
for (ItemStack stack : toolParts) {
|
||||
this.toolParts.add(new PositionedStack(stack, 10, 10));
|
||||
}
|
||||
@@ -41,7 +41,7 @@ public class RecipeHandlerToolMaterials extends RecipeHandlerBase {
|
||||
}
|
||||
|
||||
public CachedToolMaterialsRecipe(List<ItemStack> toolParts, int materialID, boolean arrowBow) {
|
||||
this.toolParts = new ArrayList<PositionedStack>();
|
||||
this.toolParts = new ArrayList<>();
|
||||
for (ItemStack stack : toolParts) {
|
||||
this.toolParts.add(new PositionedStack(stack, 10, 10));
|
||||
}
|
||||
@@ -214,7 +214,7 @@ public class RecipeHandlerToolMaterials extends RecipeHandlerBase {
|
||||
if (outputId.equals(this.getRecipeID())) {
|
||||
ToolMaterial mat;
|
||||
for (int matID : TConstructRegistry.toolMaterials.keySet()) {
|
||||
List<ItemStack> toolParts = new ArrayList<ItemStack>();
|
||||
List<ItemStack> toolParts = new ArrayList<>();
|
||||
|
||||
mat = TConstructRegistry.toolMaterials.get(matID);
|
||||
for (ItemKey key : PatternBuilder.instance.materials) {
|
||||
|
||||
Reference in new issue
Block a user