Schnittstelle Setting

Alle bekannten Unterschnittstellen:
BooleanSetting, EnumSetting<T>, VersionedBooleanSetting

public interface Setting
Base setting class.
Siehe auch:
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    net.minecraft.network.chat.Component
    The name of the setting.
    void
    read(com.google.gson.JsonObject object)
    Reads the setting from the given JsonObject.
    void
    write(com.google.gson.JsonObject object)
    Writes the setting to the given JsonObject.
  • Methodendetails

    • name

      net.minecraft.network.chat.Component name()
      The name of the setting. This is the name displayed in the settings menu.
      Gibt zurück:
      The name of the setting
    • write

      void write(com.google.gson.JsonObject object)
      Writes the setting to the given JsonObject.
      Parameter:
      object - The JsonObject to write to
    • read

      void read(com.google.gson.JsonObject object)
      Reads the setting from the given JsonObject.
      Parameter:
      object - The JsonObject to read from