Package net.minecraftforge.client
Class MinecraftForgeClient
java.lang.Object
net.minecraftforge.client.MinecraftForgeClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static HashMap<ResourceLocation,Supplier<NativeImage>> private static final com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,BlockPos>, Optional<ChunkRenderCache>> private static BitSetprivate static final Map<ResourceLocation,ITextureAtlasSpriteLoader> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic NativeImagegetImageLayer(ResourceLocation resourceLocation, IResourceManager resourceManager) static Localereturns the Locale set by the player in Minecraft.static ChunkRenderCachegetRegionRenderCache(World world, BlockPos pos) static Optional<ChunkRenderCache>getRegionRenderCacheOptional(World world, BlockPos pos) static RenderTypestatic ITextureAtlasSpriteLoaderstatic voidonRebuildChunk(World world, BlockPos position, ChunkRenderCache cache) static voidregisterImageLayerSupplier(ResourceLocation resourceLocation, Supplier<NativeImage> supplier) static voidRegister a custom ITextureAtlasSprite loader.static voidreleaseStencilBit(int bit) Release the stencil bit for other usestatic intReserve 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.
-
Field Details
-
stencilBits
-
regionCache
private static final com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,BlockPos>, regionCacheOptional<ChunkRenderCache>> -
bufferedImageSuppliers
-
textureAtlasSpriteLoaders
-
-
Constructor Details
-
MinecraftForgeClient
public MinecraftForgeClient()
-
-
Method Details
-
getRenderLayer
-
getLocale
returns the Locale set by the player in Minecraft. Useful for creating string and number formatters. -
reserveStencilBit
public 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.- Returns:
- A bit or -1 if no further stencil bits are available
-
releaseStencilBit
public static void releaseStencilBit(int bit) Release the stencil bit for other use- Parameters:
bit- The bit fromreserveStencilBit()
-
onRebuildChunk
-
getRegionRenderCache
-
getRegionRenderCacheOptional
-
clearRenderCache
public static void clearRenderCache() -
registerImageLayerSupplier
public static void registerImageLayerSupplier(ResourceLocation resourceLocation, Supplier<NativeImage> supplier) -
getImageLayer
@Nonnull public static NativeImage getImageLayer(ResourceLocation resourceLocation, IResourceManager resourceManager) throws IOException - Throws:
IOException
-
registerTextureAtlasSpriteLoader
public static void registerTextureAtlasSpriteLoader(ResourceLocation name, ITextureAtlasSpriteLoader loader) Register a custom ITextureAtlasSprite loader. Call this method duringFMLClientSetupEvent. -
getTextureAtlasSpriteLoader
@Nullable public static ITextureAtlasSpriteLoader getTextureAtlasSpriteLoader(ResourceLocation name)
-