Enum Class ChatRestriction

java.lang.Object
java.lang.Enum<ChatRestriction>
net.minecraft.client.multiplayer.chat.ChatRestriction
All Implemented Interfaces:
Serializable, Comparable<ChatRestriction>, Constable

public enum ChatRestriction extends Enum<ChatRestriction>
  • Enum Constant Details

    • CHAT_AND_COMMANDS_DISABLED_BY_OPTIONS

      public static final ChatRestriction CHAT_AND_COMMANDS_DISABLED_BY_OPTIONS
    • CHAT_DISABLED_BY_OPTIONS

      public static final ChatRestriction CHAT_DISABLED_BY_OPTIONS
    • DISABLED_BY_LAUNCHER

      public static final ChatRestriction DISABLED_BY_LAUNCHER
    • DISABLED_BY_PROFILE

      public static final ChatRestriction DISABLED_BY_PROFILE
  • Field Details

  • Constructor Details

  • Method Details

    • values

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

      public static ChatRestriction 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • display

      public Component display()
    • action

      public Optional<ChatRestriction.Action> action()
    • disablePlayerMessages

      private static void disablePlayerMessages(Set<Permission> permissionSet)
    • disableCommands

      private static void disableCommands(Set<Permission> permissionSet)
    • modifyPermissions

      public abstract void modifyPermissions(Set<Permission> permissionSet)