Search in sources :

Example 6 with IProfiler

use of net.minecraft.profiler.IProfiler in project Mekanism by mekanism.

the class MekanismTileEntityRenderer method render.

@Override
public void render(TILE tile, float partialTick, MatrixStack matrix, IRenderTypeBuffer renderer, int light, int overlayLight) {
    if (tile.getLevel() != null) {
        IProfiler profiler = tile.getLevel().getProfiler();
        profiler.push(getProfilerSection());
        render(tile, partialTick, matrix, renderer, light, overlayLight, profiler);
        profiler.pop();
    }
}
Also used : IProfiler(net.minecraft.profiler.IProfiler)

Aggregations

IProfiler (net.minecraft.profiler.IProfiler)6 IResourceManager (net.minecraft.resources.IResourceManager)3 ResourceLocation (net.minecraft.util.ResourceLocation)3 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)3 Log (com.ldtteam.blockout.Log)2 Constants (com.minecolonies.api.util.constant.Constants)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Set (java.util.Set)2 Minecraft (net.minecraft.client.Minecraft)2 ReloadListener (net.minecraft.client.resources.ReloadListener)2 World (net.minecraft.world.World)2 Overwrite (org.spongepowered.asm.mixin.Overwrite)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 Maps (com.google.common.collect.Maps)1 JsonObject (com.google.gson.JsonObject)1 JsonParseException (com.google.gson.JsonParseException)1 MatrixStack (com.mojang.blaze3d.matrix.MatrixStack)1 IInventoryBridge (io.izzel.arclight.common.bridge.inventory.IInventoryBridge)1