Class BlockSetting

java.lang.Object
meteordevelopment.meteorclient.settings.Setting<net.minecraft.block.Block>
meteordevelopment.meteorclient.settings.BlockSetting
All Implemented Interfaces:
IGetter<net.minecraft.block.Block>, ISerializable<net.minecraft.block.Block>

public class BlockSetting extends Setting<net.minecraft.block.Block>
  • Field Details

    • filter

      public final Predicate<net.minecraft.block.Block> filter
  • Constructor Details

    • BlockSetting

      public BlockSetting(String name, String description, net.minecraft.block.Block defaultValue, Consumer<net.minecraft.block.Block> onChanged, Consumer<Setting<net.minecraft.block.Block>> onModuleActivated, IVisible visible, Predicate<net.minecraft.block.Block> filter)
  • Method Details

    • parseImpl

      protected net.minecraft.block.Block parseImpl(String str)
      Specified by:
      parseImpl in class Setting<net.minecraft.block.Block>
    • isValueValid

      protected boolean isValueValid(net.minecraft.block.Block value)
      Specified by:
      isValueValid in class Setting<net.minecraft.block.Block>
    • getIdentifierSuggestions

      public Iterable<net.minecraft.util.Identifier> getIdentifierSuggestions()
      Overrides:
      getIdentifierSuggestions in class Setting<net.minecraft.block.Block>
    • save

      protected net.minecraft.nbt.NbtCompound save(net.minecraft.nbt.NbtCompound tag)
      Specified by:
      save in class Setting<net.minecraft.block.Block>
    • load

      protected net.minecraft.block.Block load(net.minecraft.nbt.NbtCompound tag)
      Specified by:
      load in class Setting<net.minecraft.block.Block>