Package net.minecraftforge.client.event
Class RegisterShadersEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterShadersEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterShadersEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourceManager
private List<com.mojang.datafixers.util.Pair<ShaderInstance,Consumer<ShaderInstance>>>
-
Constructor Summary
ConstructorDescriptionRegisterShadersEvent(ResourceManager resourceManager, List<com.mojang.datafixers.util.Pair<ShaderInstance,Consumer<ShaderInstance>>> shaderList)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerShader(ShaderInstance shaderInstance, Consumer<ShaderInstance> onLoaded)
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
resourceManager
-
shaderList
private final List<com.mojang.datafixers.util.Pair<ShaderInstance,Consumer<ShaderInstance>>> shaderList
-
-
Constructor Details
-
RegisterShadersEvent
public RegisterShadersEvent(ResourceManager resourceManager, List<com.mojang.datafixers.util.Pair<ShaderInstance,Consumer<ShaderInstance>>> shaderList)
-
-
Method Details
-
getResourceManager
-
registerShader
-