mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Java 7 and 8 cleanup
Diamond operator <> Lambdas and method references
This commit is contained in:
1 parent
3db03edbc9
commit
b72d6efab3
234 files changed
+1614
-2253
No files matched your search
@@ -65,7 +65,7 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements ICo
|
||||
|
||||
public AxisAlignedBB teleportBounds = null;
|
||||
|
||||
public Set<UUID> didTeleport = new HashSet<UUID>();
|
||||
public Set<UUID> didTeleport = new HashSet<>();
|
||||
|
||||
public int teleDelay = 0;
|
||||
|
||||
@@ -75,8 +75,8 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements ICo
|
||||
|
||||
public Frequency frequency;
|
||||
|
||||
public List<Frequency> publicCache = new ArrayList<Frequency>();
|
||||
public List<Frequency> privateCache = new ArrayList<Frequency>();
|
||||
public List<Frequency> publicCache = new ArrayList<>();
|
||||
public List<Frequency> privateCache = new ArrayList<>();
|
||||
|
||||
/** This teleporter's current status. */
|
||||
public byte status = 0;
|
||||
@@ -261,7 +261,7 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements ICo
|
||||
|
||||
public void cleanTeleportCache()
|
||||
{
|
||||
List<UUID> list = new ArrayList<UUID>();
|
||||
List<UUID> list = new ArrayList<>();
|
||||
|
||||
for(Entity e : (List<Entity>)world.getEntitiesWithinAABB(Entity.class, teleportBounds))
|
||||
{
|
||||
@@ -502,7 +502,7 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements ICo
|
||||
public List<Entity> getToTeleport()
|
||||
{
|
||||
List<Entity> entities = world.getEntitiesWithinAABB(Entity.class, teleportBounds);
|
||||
List<Entity> ret = new ArrayList<Entity>();
|
||||
List<Entity> ret = new ArrayList<>();
|
||||
|
||||
for(Entity entity : entities)
|
||||
{
|
||||
@@ -775,7 +775,7 @@ public class TileEntityTeleporter extends TileEntityElectricBlock implements ICo
|
||||
@Override
|
||||
public Set<ChunkPos> getChunkSet()
|
||||
{
|
||||
Set<ChunkPos> ret = new HashSet<ChunkPos>();
|
||||
Set<ChunkPos> ret = new HashSet<>();
|
||||
|
||||
ret.add(new Chunk3D(Coord4D.get(this)).getPos());
|
||||
|
||||
|
||||
Reference in new issue
Block a user