Class ClientRegistry

java.lang.Object
net.minecraftforge.fml.client.registry.ClientRegistry

public class ClientRegistry extends Object
  • Field Details

  • Constructor Details

    • ClientRegistry

      public ClientRegistry()
  • Method Details

    • bindTileEntityRenderer

      public static <T extends TileEntity> void bindTileEntityRenderer(TileEntityType<T> tileEntityType, Function<? super TileEntityRendererDispatcher,? extends TileEntityRenderer<? super T>> rendererFactory)
      Registers a Tile Entity renderer. Call this during FMLClientSetupEvent. This method is safe to call during parallel mod loading.
    • 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(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)