类 ModelEvent.RegisterModelStateDefinitions
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ModelEvent
net.minecraftforge.client.event.ModelEvent.RegisterModelStateDefinitions
- 所有已实现的接口:
IModBusEvent
- 封闭类:
ModelEvent
public static class ModelEvent.RegisterModelStateDefinitions
extends ModelEvent
implements IModBusEvent
Fired when the
BlockStateModelLoader
is notified of the resource manager reloading.
Allows developers to register StateDefinitons
for blocks that are not in the normal Block registry.
This is designed to allow for extra models to be loaded in connection with a blockstates json file. This is not intended to allow
overriding or modification of StateDefinitions from registered Blocks
This event is fired on the mod-specific event bus, only on the logical client.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ModelEvent
ModelEvent.BakingCompleted, ModelEvent.ModifyBakingResult, ModelEvent.RegisterGeometryLoaders, ModelEvent.RegisterModelStateDefinitions
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final Map
<ResourceLocation, StateDefinition<Block, BlockState>> private final Map
<ResourceLocation, StateDefinition<Block, BlockState>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns a read only view of the extra registered modelsvoid
register
(ResourceLocation key, StateDefinition<Block, BlockState> value) Registers a StateDefinition for a synthetic block.从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
states
-
view
-
-
构造器详细资料
-
RegisterModelStateDefinitions
@Internal public RegisterModelStateDefinitions()
-
-
方法详细资料
-
getStates
Returns a read only view of the extra registered models -
register
Registers a StateDefinition for a synthetic block.
-