Class MinecraftForgeClient


  • public class MinecraftForgeClient
    extends java.lang.Object
    • Field Detail

      • stencilBits

        private static java.util.BitSet stencilBits
      • regionCache

        private static final com.google.common.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<World,​BlockPos>,​java.util.Optional<ChunkRenderCache>> regionCache
      • bufferedImageSuppliers

        private static java.util.HashMap<ResourceLocation,​java.util.function.Supplier<NativeImage>> bufferedImageSuppliers
    • Constructor Detail

      • MinecraftForgeClient

        public MinecraftForgeClient()
    • Method Detail

      • getRenderLayer

        public static RenderType getRenderLayer()
      • getLocale

        public static java.util.Locale 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 from reserveStencilBit()
      • clearRenderCache

        public static void clearRenderCache()
      • registerImageLayerSupplier

        public static void registerImageLayerSupplier​(ResourceLocation resourceLocation,
                                                      java.util.function.Supplier<NativeImage> supplier)