quick fix : Explicit type can be replaced with <>

This commit is contained in:
Alexdoru committed 2023-01-25 22:37:16 +01:00
1 parent 66ba36d6a0
commit 4dc089061c
55 files changed
+132 -132

No files matched your search

@@ -86,7 +86,7 @@ public class SlimeTallGrass extends BlockBush implements IShearable {
@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int meta, int fortune) {
ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
ArrayList<ItemStack> ret = new ArrayList<>();
if (world.rand.nextInt(8) != 0) {
return ret;
}
@@ -105,7 +105,7 @@ public class SlimeTallGrass extends BlockBush implements IShearable {
@Override
public ArrayList<ItemStack> onSheared(ItemStack item, IBlockAccess world, int x, int y, int z, int fortune) {
ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
ArrayList<ItemStack> ret = new ArrayList<>();
ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z)));
return ret;
}