Class RegisterNamedRenderTypesEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterNamedRenderTypesEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterNamedRenderTypesEvent
extends net.neoforged.bus.api.Event
implements IModBusEvent
Allows users to register custom named
render types.
This event is not cancellable.
This event is fired on the mod-specific event bus, only on the logical client.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegisterNamedRenderTypesEvent(Map<ResourceLocation, RenderTypeGroup> renderTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(ResourceLocation key, ChunkSectionLayer chunkLayer, RenderType entityRenderType) Registers a namedRenderTypeGroup.
-
Field Details
-
renderTypes
-
-
Constructor Details
-
RegisterNamedRenderTypesEvent
-
-
Method Details
-
register
public void register(ResourceLocation key, ChunkSectionLayer chunkLayer, RenderType entityRenderType) Registers a namedRenderTypeGroup.- Parameters:
key- The ID of the groupchunkLayer- TheChunkSectionLayerto render blocks with as part of the terrainentityRenderType- ARenderTypeusingDefaultVertexFormat.NEW_ENTITY
-