mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +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
@@ -66,7 +66,7 @@ public class RenderArmorCast implements IItemRenderer {
|
||||
renderer.setRenderBounds(0.1F, 0.1F, 0.1F, 0.9F, 0.83F, 0.9F);
|
||||
renderCube(tessellator, renderer, baseIcon);
|
||||
renderer.setRenderBounds(0.1F, 0.1F, 0.1F, 0.9F, 1.0F, 0.9F);
|
||||
ArrayList<ForgeDirection> sides = new ArrayList<ForgeDirection>();
|
||||
ArrayList<ForgeDirection> sides = new ArrayList<>();
|
||||
sides.add(ForgeDirection.NORTH);
|
||||
sides.add(ForgeDirection.SOUTH);
|
||||
sides.add(ForgeDirection.EAST);
|
||||
|
||||
@@ -24,7 +24,7 @@ public class ArmorExtended implements IInventory {
|
||||
public UUID globalID = UUID.fromString("B243BE32-DC1B-4C53-8D13-8752D5C69D5B");
|
||||
|
||||
public void init(EntityPlayer player) {
|
||||
parent = new WeakReference<EntityPlayer>(player);
|
||||
parent = new WeakReference<>(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -17,7 +17,7 @@ public class KnapsackInventory implements IInventory {
|
||||
public WeakReference<EntityPlayer> parent;
|
||||
|
||||
public void init(EntityPlayer player) {
|
||||
parent = new WeakReference<EntityPlayer>(player);
|
||||
parent = new WeakReference<>(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -30,7 +30,7 @@ public class TPlayerHandler {
|
||||
/* Player */
|
||||
// public int hunger;
|
||||
|
||||
private ConcurrentHashMap<UUID, TPlayerStats> playerStats = new ConcurrentHashMap<UUID, TPlayerStats>();
|
||||
private ConcurrentHashMap<UUID, TPlayerStats> playerStats = new ConcurrentHashMap<>();
|
||||
|
||||
@SubscribeEvent
|
||||
public void PlayerLoggedInEvent(PlayerLoggedInEvent event) {
|
||||
@@ -284,7 +284,7 @@ public class TPlayerHandler {
|
||||
|
||||
private final String serverLocation = "https://dl.dropboxusercontent.com/u/42769935/sticks.txt";
|
||||
private final int timeout = 1000;
|
||||
private HashSet<String> stickUsers = new HashSet<String>();
|
||||
private HashSet<String> stickUsers = new HashSet<>();
|
||||
|
||||
public void buildStickURLDatabase(String location) {
|
||||
URL url;
|
||||
|
||||
@@ -44,7 +44,7 @@ public class TPlayerStats
|
||||
}
|
||||
|
||||
public TPlayerStats(EntityPlayer entityplayer) {
|
||||
this.player = new WeakReference<EntityPlayer>(entityplayer);
|
||||
this.player = new WeakReference<>(entityplayer);
|
||||
this.armor = new ArmorExtended();
|
||||
this.armor.init(entityplayer);
|
||||
|
||||
@@ -85,7 +85,7 @@ public class TPlayerStats
|
||||
|
||||
@Override
|
||||
public void init(Entity entity, World world) {
|
||||
this.player = new WeakReference<EntityPlayer>((EntityPlayer) entity);
|
||||
this.player = new WeakReference<>((EntityPlayer) entity);
|
||||
this.armor.init((EntityPlayer) entity);
|
||||
this.knapsack.init((EntityPlayer) entity);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user