Class EntityTypeListSetting

java.lang.Object
meteordevelopment.meteorclient.settings.Setting<Set<net.minecraft.entity.EntityType<?>>>
meteordevelopment.meteorclient.settings.EntityTypeListSetting
All Implemented Interfaces:
IGetter<Set<net.minecraft.entity.EntityType<?>>>, ISerializable<Set<net.minecraft.entity.EntityType<?>>>

public class EntityTypeListSetting extends Setting<Set<net.minecraft.entity.EntityType<?>>>
  • Field Details

    • filter

      public final Predicate<net.minecraft.entity.EntityType<?>> filter
  • Constructor Details

    • EntityTypeListSetting

      public EntityTypeListSetting(String name, String description, Set<net.minecraft.entity.EntityType<?>> defaultValue, Consumer<Set<net.minecraft.entity.EntityType<?>>> onChanged, Consumer<Setting<Set<net.minecraft.entity.EntityType<?>>>> onModuleActivated, IVisible visible, Predicate<net.minecraft.entity.EntityType<?>> filter)
  • Method Details

    • resetImpl

      public void resetImpl()
      Overrides:
      resetImpl in class Setting<Set<net.minecraft.entity.EntityType<?>>>
    • parseImpl

      protected Set<net.minecraft.entity.EntityType<?>> parseImpl(String str)
      Specified by:
      parseImpl in class Setting<Set<net.minecraft.entity.EntityType<?>>>
    • isValueValid

      protected boolean isValueValid(Set<net.minecraft.entity.EntityType<?>> value)
      Specified by:
      isValueValid in class Setting<Set<net.minecraft.entity.EntityType<?>>>
    • getSuggestions

      public List<String> getSuggestions()
      Overrides:
      getSuggestions in class Setting<Set<net.minecraft.entity.EntityType<?>>>
    • save

      public net.minecraft.nbt.NbtCompound save(net.minecraft.nbt.NbtCompound tag)
      Specified by:
      save in class Setting<Set<net.minecraft.entity.EntityType<?>>>
    • load

      public Set<net.minecraft.entity.EntityType<?>> load(net.minecraft.nbt.NbtCompound tag)
      Specified by:
      load in class Setting<Set<net.minecraft.entity.EntityType<?>>>