类 TagsUpdatedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.TagsUpdatedEvent
public class TagsUpdatedEvent
extends net.minecraftforge.eventbus.api.Event
Fired when tags are updated on either server or client. This event can be used to refresh data that depends on tags.
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final boolean
private final RegistryAccess
private final TagsUpdatedEvent.UpdateCause
-
构造器概要
构造器构造器说明TagsUpdatedEvent
(RegistryAccess registryAccess, boolean fromClientPacket, boolean isIntegratedServerConnection) -
方法概要
修饰符和类型方法说明boolean
Whether static data (which in single player is shared between server and client thread) should be updated as a result of this event.从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
registryAccess
-
updateCause
-
integratedServer
private final boolean integratedServer
-
-
构造器详细资料
-
TagsUpdatedEvent
public TagsUpdatedEvent(RegistryAccess registryAccess, boolean fromClientPacket, boolean isIntegratedServerConnection)
-
-
方法详细资料
-
getRegistryAccess
- 返回:
- The dynamic registries that have had their tags rebound.
-
getUpdateCause
- 返回:
- the cause for this tag update
-
shouldUpdateStaticData
public boolean shouldUpdateStaticData()Whether static data (which in single player is shared between server and client thread) should be updated as a result of this event. Effectively this means that in single player only the server-side updates this data.
-