类 EntityRenderersEvent.CreateSkullModels
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.EntityRenderersEvent
net.minecraftforge.client.event.EntityRenderersEvent.CreateSkullModels
- 所有已实现的接口:
IModBusEvent
- 封闭类:
EntityRenderersEvent
Fired for registering additional skull models at the appropriate time.
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.EntityRenderersEvent
EntityRenderersEvent.AddLayers, EntityRenderersEvent.CreateSkullModels, EntityRenderersEvent.RegisterLayerDefinitions, EntityRenderersEvent.RegisterRenderers
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final com.google.common.collect.ImmutableMap.Builder
<SkullBlock.Type, Function<EntityModelSet, SkullModelBase>> -
构造器概要
构造器构造器说明CreateSkullModels
(com.google.common.collect.ImmutableMap.Builder<SkullBlock.Type, Function<EntityModelSet, SkullModelBase>> builder) -
方法概要
修饰符和类型方法说明void
registerSkullModel
(SkullBlock.Type type, Function<EntityModelSet, SkullModelBase> model) Registers the constructor for a skull block with the givenSkullBlock.Type
.从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
builder
private final com.google.common.collect.ImmutableMap.Builder<SkullBlock.Type,Function<EntityModelSet, builderSkullModelBase>>
-
-
构造器详细资料
-
CreateSkullModels
@Internal public CreateSkullModels(com.google.common.collect.ImmutableMap.Builder<SkullBlock.Type, Function<EntityModelSet, SkullModelBase>> builder)
-
-
方法详细资料
-
registerSkullModel
Registers the constructor for a skull block with the givenSkullBlock.Type
. These will be inserted into the maps used by the item, entity, and block model renderers at the appropriate time.- 参数:
type
- a unique skull type; an exception will be thrown later if multiple mods (including vanilla) register models for the same typemodel
- the skull model instance. A typical implementation will simply bake a model usingEntityModelSet.bakeLayer(ModelLayerLocation)
and pass it to the constructor forSkullModel
.
-