Package net.minecraftforge.client.event
Class RegisterNamedRenderTypesEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterNamedRenderTypesEvent
- All Implemented Interfaces:
IModBusEvent
public class RegisterNamedRenderTypesEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Allows users to register custom named
render types
.
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegisterNamedRenderTypesEvent
(Map<ResourceLocation, RenderTypeGroup> renderTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(String name, RenderType blockRenderType, RenderType entityRenderType) Registers a namedRenderTypeGroup
.void
register
(String name, RenderType blockRenderType, RenderType entityRenderType, RenderType fabulousEntityRenderType) Registers a namedRenderTypeGroup
.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
renderTypes
-
-
Constructor Details
-
RegisterNamedRenderTypesEvent
-
-
Method Details
-
register
Registers a namedRenderTypeGroup
.- Parameters:
name
- The nameblockRenderType
- One of the values returned byRenderType.chunkBufferLayers()
entityRenderType
- ARenderType
usingDefaultVertexFormat.NEW_ENTITY
-
register
public void register(String name, RenderType blockRenderType, RenderType entityRenderType, RenderType fabulousEntityRenderType) Registers a namedRenderTypeGroup
.- Parameters:
name
- The nameblockRenderType
- One of the values returned byRenderType.chunkBufferLayers()
entityRenderType
- ARenderType
usingDefaultVertexFormat.NEW_ENTITY
fabulousEntityRenderType
- ARenderType
usingDefaultVertexFormat.NEW_ENTITY
for use when "fabulous" rendering is enabled
-