Class ClientRegistry


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

      • entityShaderMap

        private static java.util.Map<java.lang.Class<? extends Entity>,​ResourceLocation> entityShaderMap
    • Constructor Detail

      • ClientRegistry

        public ClientRegistry()
    • Method Detail

      • registerKeyBinding

        public static void registerKeyBinding​(KeyBinding key)
        Registers a KeyBinding. Call this during FMLClientSetupEvent. This method is safe to call during parallel mod loading.
      • registerEntityShader

        public static void registerEntityShader​(java.lang.Class<? extends Entity> entityClass,
                                                ResourceLocation shader)
        Register a shader for an entity. This shader gets activated when a spectator begins spectating an entity. Vanilla examples of this are the green effect for creepers and the invert effect for endermen. Call this during FMLClientSetupEvent. This method is safe to call during parallel mod loading.
      • getEntityShader

        public static ResourceLocation getEntityShader​(java.lang.Class<? extends Entity> entityClass)