Class BlockSetting
java.lang.Object
meteordevelopment.meteorclient.settings.Setting<net.minecraft.world.level.block.Block>
meteordevelopment.meteorclient.settings.BlockSetting
- All Implemented Interfaces:
IGetter<net.minecraft.world.level.block.Block>, ISerializable<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
ConstructorsConstructorDescriptionBlockSetting(String name, String description, net.minecraft.world.level.block.Block defaultValue, Consumer<net.minecraft.world.level.block.Block> onChanged, Consumer<Setting<net.minecraft.world.level.block.Block>> onModuleActivated, IVisible visible, Predicate<net.minecraft.world.level.block.Block> filter) -
Method Summary
Modifier and TypeMethodDescriptionIterable<net.minecraft.resources.Identifier> protected booleanisValueValid(net.minecraft.world.level.block.Block value) protected net.minecraft.world.level.block.Blockload(net.minecraft.nbt.CompoundTag tag) protected net.minecraft.world.level.block.Blockprotected 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, resetImpl, set, toString, toTag, wasChanged
-
Field Details
-
filter
-
-
Constructor Details
-
BlockSetting
public BlockSetting(String name, String description, net.minecraft.world.level.block.Block defaultValue, Consumer<net.minecraft.world.level.block.Block> onChanged, Consumer<Setting<net.minecraft.world.level.block.Block>> onModuleActivated, IVisible visible, Predicate<net.minecraft.world.level.block.Block> filter)
-
-
Method Details
-
parseImpl
-
isValueValid
protected boolean isValueValid(net.minecraft.world.level.block.Block value) - Specified by:
isValueValidin classSetting<net.minecraft.world.level.block.Block>
-
getIdentifierSuggestions
- Overrides:
getIdentifierSuggestionsin classSetting<net.minecraft.world.level.block.Block>
-
save
-
load
-