mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
More work
This commit is contained in:
1 parent
eba5f7e356
commit
c6f3c162f9
19 files changed
+146
-163
No files matched your search
@@ -5,7 +5,7 @@ import io.netty.buffer.ByteBuf;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
import mekanism.api.util.ReflectionUtils;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -52,6 +52,11 @@ public class Coord4D extends BlockPos
|
||||
{
|
||||
this(x, y, z, world.provider.getDimensionId());
|
||||
}
|
||||
|
||||
public Coord4D(Vec3i pos, World world)
|
||||
{
|
||||
this(pos, world.provider.getDimensionId());
|
||||
}
|
||||
|
||||
public Coord4D(double x, double y, double z)
|
||||
{
|
||||
@@ -161,7 +166,7 @@ public class Coord4D extends BlockPos
|
||||
}
|
||||
}
|
||||
|
||||
List<TileEntity> added = (List<TileEntity>)MekanismUtils.getPrivateValue(world, World.class, ObfuscatedNames.World_addedTileEntityList);
|
||||
List<TileEntity> added = (List<TileEntity>)ReflectionUtils.getPrivateValue(world, World.class, ObfuscatedNames.World_addedTileEntityList);
|
||||
|
||||
for(TileEntity iter : added)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user