Enum Class TagsUpdatedEvent.UpdateCause

java.lang.Object
java.lang.Enum<TagsUpdatedEvent.UpdateCause>
net.minecraftforge.event.TagsUpdatedEvent.UpdateCause
所有已实现的接口:
Serializable, Comparable<TagsUpdatedEvent.UpdateCause>, Constable
封闭类:
TagsUpdatedEvent

public static enum TagsUpdatedEvent.UpdateCause extends Enum<TagsUpdatedEvent.UpdateCause>
Represents the cause for a tag update.
  • 枚举常量详细资料

    • SERVER_DATA_LOAD

      public static final TagsUpdatedEvent.UpdateCause SERVER_DATA_LOAD
      The tag update is caused by the server loading datapack data. Note that in single player this still happens on the client thread.
    • CLIENT_PACKET_RECEIVED

      public static final TagsUpdatedEvent.UpdateCause CLIENT_PACKET_RECEIVED
      The tag update is caused by the client receiving the tag data from the server.
  • 构造器详细资料

    • UpdateCause

      private UpdateCause()
  • 方法详细资料

    • values

      public static TagsUpdatedEvent.UpdateCause[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TagsUpdatedEvent.UpdateCause valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值