Class ClientRegistry
java.lang.Object
net.minecraftforge.fmlclient.registry.ClientRegistry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLocation
getEntityShader(Class<? extends Entity> entityClass)
static void
registerEntityShader(Class<? extends Entity> entityClass, ResourceLocation shader)
Register a shader for an entity.static void
registerKeyBinding(KeyMapping key)
Registers a KeyBinding.
-
Field Details
-
entityShaderMap
-
-
Constructor Details
-
ClientRegistry
public ClientRegistry()
-
-
Method Details
-
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
-