Class ClientRegistry

java.lang.Object
net.minecraftforge.fmlclient.registry.ClientRegistry

public class ClientRegistry extends Object
  • Field Details

  • Constructor Details

    • ClientRegistry

      public ClientRegistry()
  • Method Details

    • registerKeyBinding

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

      public static void registerEntityShader(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(Class<? extends Entity> entityClass)