public class MinecraftForgeClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<ResourceLocation,java.util.function.Supplier<NativeImage>> |
bufferedImageSuppliers |
private static com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,BlockPos>,java.util.Optional<ChunkRenderCache>> |
regionCache |
private static java.util.BitSet |
stencilBits |
Constructor and Description |
---|
MinecraftForgeClient() |
Modifier and Type | Method and Description |
---|---|
static void |
clearRenderCache() |
static NativeImage |
getImageLayer(ResourceLocation resourceLocation,
IResourceManager resourceManager) |
static java.util.Locale |
getLocale()
returns the Locale set by the player in Minecraft.
|
static ChunkRenderCache |
getRegionRenderCache(World world,
BlockPos pos) |
static java.util.Optional<ChunkRenderCache> |
getRegionRenderCacheOptional(World world,
BlockPos pos) |
static RenderType |
getRenderLayer() |
static void |
onRebuildChunk(World world,
BlockPos position,
ChunkRenderCache cache) |
static void |
registerImageLayerSupplier(ResourceLocation resourceLocation,
java.util.function.Supplier<NativeImage> 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>,java.util.Optional<ChunkRenderCache>> regionCache
private static java.util.HashMap<ResourceLocation,java.util.function.Supplier<NativeImage>> bufferedImageSuppliers
public static RenderType 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, ChunkRenderCache cache)
public static ChunkRenderCache getRegionRenderCache(World world, BlockPos pos)
public static java.util.Optional<ChunkRenderCache> getRegionRenderCacheOptional(World world, BlockPos pos)
public static void clearRenderCache()
public static void registerImageLayerSupplier(ResourceLocation resourceLocation, java.util.function.Supplier<NativeImage> supplier)
@Nonnull public static NativeImage getImageLayer(ResourceLocation resourceLocation, IResourceManager resourceManager) throws java.io.IOException
java.io.IOException