Package net.minecraftforge.client.event
Class RegisterEntitySpectatorShadersEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterEntitySpectatorShadersEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterEntitySpectatorShadersEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Allows users to register custom shaders to be used when the player spectates a certain kind of entity.
Vanilla examples of this are the green effect for creepers and the invert effect for endermen.
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
-
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
-
Constructor Summary
ConstructorDescriptionRegisterEntitySpectatorShadersEvent
(Map<EntityType<?>, ResourceLocation> shaders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(EntityType<?> entityType, ResourceLocation shader) Registers a spectator shader for a given entity type.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
shaders
-
-
Constructor Details
-
RegisterEntitySpectatorShadersEvent
-
-
Method Details
-
register
Registers a spectator shader for a given entity type.
-