Class ClientRegistry
java.lang.Object
net.minecraftforge.fml.client.registry.ClientRegistry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends TileEntity>
voidbindTileEntityRenderer
(TileEntityType<T> tileEntityType, Function<? super TileEntityRendererDispatcher, ? extends TileEntityRenderer<? super T>> rendererFactory) Registers a Tile Entity renderer.static ResourceLocation
getEntityShader
(Class<? extends Entity> entityClass) static void
registerEntityShader
(Class<? extends Entity> entityClass, ResourceLocation shader) Register a shader for an entity.static void
Registers a KeyBinding.
-
Field Details
-
entityShaderMap
-
-
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 duringFMLClientSetupEvent
. This method is safe to call during parallel mod loading. -
registerKeyBinding
Registers a KeyBinding. Call this duringFMLClientSetupEvent
. 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 duringFMLClientSetupEvent
. This method is safe to call during parallel mod loading. -
getEntityShader
-