public class MinecraftForgeClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<ResourceLocation,java.util.function.Supplier<java.awt.image.BufferedImage>> |
bufferedImageSuppliers |
private static com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,BlockPos>,ChunkCache> |
regionCache |
private static java.util.BitSet |
stencilBits |
Constructor and Description |
---|
MinecraftForgeClient() |
Modifier and Type | Method and Description |
---|---|
static void |
clearRenderCache() |
static java.awt.image.BufferedImage |
getImageLayer(ResourceLocation resourceLocation,
IResourceManager resourceManager) |
static java.util.Locale |
getLocale()
returns the Locale set by the player in Minecraft.
|
static ChunkCache |
getRegionRenderCache(World world,
BlockPos pos) |
static BlockRenderLayer |
getRenderLayer() |
static int |
getRenderPass() |
static void |
onRebuildChunk(World world,
BlockPos position,
ChunkCache cache) |
static void |
registerImageLayerSupplier(ResourceLocation resourceLocation,
java.util.function.Supplier<java.awt.image.BufferedImage> supplier) |
static void |
releaseStencilBit(int bit)
Release the stencil bit for other use
|
static int |
reserveStencilBit()
Reserve a stencil bit for use in rendering
Note: you must check the Framebuffer you are working with to
determine if stencil bits are enabled on it before use.
|
private static java.util.BitSet stencilBits
private static final com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,BlockPos>,ChunkCache> regionCache
private static java.util.HashMap<ResourceLocation,java.util.function.Supplier<java.awt.image.BufferedImage>> bufferedImageSuppliers
public static int getRenderPass()
public static BlockRenderLayer getRenderLayer()
public static java.util.Locale getLocale()
public static int reserveStencilBit()
public static void releaseStencilBit(int bit)
bit
- The bit from reserveStencilBit()
public static void onRebuildChunk(World world, BlockPos position, ChunkCache cache)
public static ChunkCache getRegionRenderCache(World world, BlockPos pos)
public static void clearRenderCache()
public static void registerImageLayerSupplier(ResourceLocation resourceLocation, java.util.function.Supplier<java.awt.image.BufferedImage> supplier)
@Nonnull public static java.awt.image.BufferedImage getImageLayer(ResourceLocation resourceLocation, IResourceManager resourceManager) throws java.io.IOException
java.io.IOException