Class RegisterEntitySpectatorShadersEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterEntitySpectatorShadersEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterEntitySpectatorShadersEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.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
.
invalid reference
have a result
This event is fired on the mod-specific event bus, only on the logical client.
-
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.
-
Field Details
-
shaders
-
-
Constructor Details
-
RegisterEntitySpectatorShadersEvent
-
-
Method Details
-
register
Registers a spectator shader for a given entity type.
-