Class BlockListSetting
java.lang.Object
meteordevelopment.meteorclient.settings.Setting<List<net.minecraft.world.level.block.Block>>
meteordevelopment.meteorclient.settings.BlockListSetting
- All Implemented Interfaces:
IGetter<List<net.minecraft.world.level.block.Block>>, ISerializable<List<net.minecraft.world.level.block.Block>>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Setting
Setting.SettingBuilder<B,V, S> -
Field Summary
FieldsFields inherited from class Setting
defaultValue, description, lastWasVisible, module, name, onModuleActivated, title, value -
Constructor Summary
ConstructorsConstructorDescriptionBlockListSetting(String name, String description, List<net.minecraft.world.level.block.Block> defaultValue, Consumer<List<net.minecraft.world.level.block.Block>> onChanged, Consumer<Setting<List<net.minecraft.world.level.block.Block>>> onModuleActivated, Predicate<net.minecraft.world.level.block.Block> filter, IVisible visible) -
Method Summary
Modifier and TypeMethodDescriptionIterable<net.minecraft.resources.Identifier> protected booleanisValueValid(List<net.minecraft.world.level.block.Block> value) protected List<net.minecraft.world.level.block.Block> load(net.minecraft.nbt.CompoundTag tag) protected List<net.minecraft.world.level.block.Block> voidprotected net.minecraft.nbt.CompoundTagsave(net.minecraft.nbt.CompoundTag tag) Methods inherited from class Setting
equals, fromTag, get, getDefaultValue, getSuggestions, hashCode, isVisible, onActivated, onChanged, parse, parseId, reset, set, toString, toTag, wasChanged
-
Field Details
-
filter
-
-
Constructor Details
-
BlockListSetting
public BlockListSetting(String name, String description, List<net.minecraft.world.level.block.Block> defaultValue, Consumer<List<net.minecraft.world.level.block.Block>> onChanged, Consumer<Setting<List<net.minecraft.world.level.block.Block>>> onModuleActivated, Predicate<net.minecraft.world.level.block.Block> filter, IVisible visible)
-
-
Method Details
-
resetImpl
-
parseImpl
-
isValueValid
- Specified by:
isValueValidin classSetting<List<net.minecraft.world.level.block.Block>>
-
getIdentifierSuggestions
- Overrides:
getIdentifierSuggestionsin classSetting<List<net.minecraft.world.level.block.Block>>
-
save
-
load
-