Added the ability to get the top texture

This commit is contained in:
Leonardo
2021-09-17 12:29:57 +02:00
parent c31b1f4039
commit 83571951be
2 changed files with 64 additions and 25 deletions
@@ -21,6 +21,9 @@ import net.minecraft.profiler.IProfiler;
import net.minecraft.server.integrated.IntegratedServer;
import net.minecraft.util.Direction;
import net.minecraft.world.DimensionType;
import net.minecraft.world.IWorld;
import net.minecraft.world.World;
import org.lwjgl.system.CallbackI;
/**
* A singleton that wraps the Minecraft class
@@ -172,6 +175,11 @@ public class MinecraftWrapper
return mc.getModelManager();
}
public World getWorld()
{
return mc.level;
}
/** Measured in chunks */
public int getRenderDistance()
{