mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 22:04:49 +00:00
Use ATed methods & fields instead of ReflectionUtils. Removed ObfuscatedNames as no longer needed.
This commit is contained in:
1 parent
7640990aa2
commit
a30f3e076b
8 files changed
+23
-93
No files matched your search
@@ -18,9 +18,7 @@ import mekanism.client.render.tileentity.RenderFluidTank;
|
||||
import mekanism.client.render.tileentity.RenderThermalEvaporationController;
|
||||
import mekanism.client.render.transmitter.RenderLogisticalTransporter;
|
||||
import mekanism.client.render.transmitter.RenderMechanicalPipe;
|
||||
import mekanism.common.ObfuscatedNames;
|
||||
import mekanism.common.base.IMetaItem;
|
||||
import mekanism.common.util.ReflectionUtils;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.GLAllocation;
|
||||
@@ -265,7 +263,7 @@ public class MekanismRenderer
|
||||
|
||||
public static boolean isDrawing(VertexBuffer buffer)
|
||||
{
|
||||
return (boolean)ReflectionUtils.getPrivateValue(buffer, VertexBuffer.class, ObfuscatedNames.VertexBuffer_isDrawing);
|
||||
return buffer.isDrawing;
|
||||
}
|
||||
|
||||
public static class Model3D
|
||||
@@ -539,12 +537,9 @@ public class MekanismRenderer
|
||||
|
||||
public static float getPartialTick()
|
||||
{
|
||||
try {
|
||||
Timer t = (Timer)ReflectionUtils.getPrivateValue(Minecraft.getMinecraft(), Minecraft.class, ObfuscatedNames.Minecraft_timer);
|
||||
return t.renderPartialTicks;
|
||||
} catch(Exception e) {}
|
||||
|
||||
return 0;
|
||||
Timer t = Minecraft.getMinecraft().timer;
|
||||
return t.renderPartialTicks;
|
||||
|
||||
}
|
||||
|
||||
public static ResourceLocation getBlocksTexture()
|
||||
|
||||
Reference in new issue
Block a user