Class EnchantmentListSetting
java.lang.Object
meteordevelopment.meteorclient.settings.Setting<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>
meteordevelopment.meteorclient.settings.EnchantmentListSetting
- All Implemented Interfaces:
IGetter<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>,ISerializable<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class meteordevelopment.meteorclient.settings.Setting
Setting.SettingBuilder<B,V, S> -
Field Summary
Fields inherited from class meteordevelopment.meteorclient.settings.Setting
defaultValue, description, lastWasVisible, module, name, onModuleActivated, title, value -
Constructor Summary
ConstructorsConstructorDescriptionEnchantmentListSetting(String name, String description, Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> defaultValue, Consumer<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>> onChanged, Consumer<Setting<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>> onModuleActivated, IVisible visible) -
Method Summary
Modifier and TypeMethodDescriptionIterable<net.minecraft.util.Identifier> protected booleanisValueValid(Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> value) Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> load(net.minecraft.nbt.NbtCompound tag) protected Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> voidnet.minecraft.nbt.NbtCompoundsave(net.minecraft.nbt.NbtCompound tag) Methods inherited from class meteordevelopment.meteorclient.settings.Setting
equals, fromTag, get, getDefaultValue, getSuggestions, hashCode, isVisible, onActivated, onChanged, parse, parseId, reset, set, toString, toTag, wasChanged
-
Constructor Details
-
EnchantmentListSetting
public EnchantmentListSetting(String name, String description, Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> defaultValue, Consumer<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>> onChanged, Consumer<Setting<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>> onModuleActivated, IVisible visible)
-
-
Method Details
-
resetImpl
public void resetImpl() -
parseImpl
-
isValueValid
protected boolean isValueValid(Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> value) - Specified by:
isValueValidin classSetting<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>
-
getIdentifierSuggestions
- Overrides:
getIdentifierSuggestionsin classSetting<Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>>>
-
save
public net.minecraft.nbt.NbtCompound save(net.minecraft.nbt.NbtCompound tag) -
load
public Set<net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>> load(net.minecraft.nbt.NbtCompound tag)
-