Class SettingImpl

java.lang.Object
com.viaversion.viafabricplus.settings.base.SettingImpl
All Implemented Interfaces:
com.viaversion.viafabricplus.api.settings.base.Setting
Direct Known Subclasses:
BooleanSettingImpl, EnumSettingImpl

public abstract class SettingImpl extends Object implements com.viaversion.viafabricplus.api.settings.base.Setting
  • Constructor Summary

    Constructors
    Constructor
    Description
    SettingImpl(String key, net.minecraft.network.chat.Component component)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    key()
     
    net.minecraft.network.chat.Component
     
    protected @Nullable com.google.gson.JsonElement
    value(com.google.gson.JsonObject object)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.viaversion.viafabricplus.api.settings.base.Setting

    read, write
  • Constructor Details

    • SettingImpl

      public SettingImpl(String key, net.minecraft.network.chat.Component component)
  • Method Details

    • key

      protected String key()
    • value

      @Nullable protected @Nullable com.google.gson.JsonElement value(com.google.gson.JsonObject object)
    • name

      public net.minecraft.network.chat.Component name()
      Specified by:
      name in interface com.viaversion.viafabricplus.api.settings.base.Setting