Class 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.
  • Field Details

  • Constructor Details

    • TagsUpdatedEvent

      @Deprecated(forRemoval=true, since="1.18.2") public TagsUpdatedEvent(RegistryAccess registries)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TagsUpdatedEvent

      public TagsUpdatedEvent(RegistryAccess registries, boolean fromClientPacket, boolean isIntegratedServerConnection)
  • Method Details

    • getTagManager

      public RegistryAccess getTagManager()
      Returns:
      The dynamic registries that have had their tags rebound.
    • getUpdateCause

      public TagsUpdatedEvent.UpdateCause getUpdateCause()
      Returns:
      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.