Class ClientRegistry
- java.lang.Object
-
- net.minecraftforge.fml.client.registry.ClientRegistry
-
public class ClientRegistry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends Entity>,ResourceLocation>
entityShaderMap
-
Constructor Summary
Constructors Constructor Description ClientRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends TileEntity>
voidbindTileEntityRenderer(TileEntityType<T> tileEntityType, java.util.function.Function<? super TileEntityRendererDispatcher,? extends TileEntityRenderer<? super T>> rendererFactory)
Registers a Tile Entity renderer.static ResourceLocation
getEntityShader(java.lang.Class<? extends Entity> entityClass)
static void
registerEntityShader(java.lang.Class<? extends Entity> entityClass, ResourceLocation shader)
Register a shader for an entity.static void
registerKeyBinding(KeyBinding key)
Registers a KeyBinding.
-
-
-
Field Detail
-
entityShaderMap
private static java.util.Map<java.lang.Class<? extends Entity>,ResourceLocation> entityShaderMap
-
-
Method Detail
-
bindTileEntityRenderer
public static <T extends TileEntity> void bindTileEntityRenderer(TileEntityType<T> tileEntityType, java.util.function.Function<? super TileEntityRendererDispatcher,? extends TileEntityRenderer<? super T>> rendererFactory)
Registers a Tile Entity renderer. Call this duringFMLClientSetupEvent
. This method is safe to call during parallel mod loading.
-
registerKeyBinding
public static void registerKeyBinding(KeyBinding key)
Registers a KeyBinding. Call this duringFMLClientSetupEvent
. 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 duringFMLClientSetupEvent
. This method is safe to call during parallel mod loading.
-
getEntityShader
public static ResourceLocation getEntityShader(java.lang.Class<? extends Entity> entityClass)
-
-