Class KeyTypeSelection

java.lang.Object
appeng.api.util.KeyTypeSelection

public class KeyTypeSelection extends Object
Helper class to store the selection of key types.
  • Constructor Details

  • Method Details

    • forStack

      public static KeyTypeSelection forStack(net.minecraft.world.item.ItemStack stack, Predicate<AEKeyType> allowKeyType)
    • setEnabled

      public void setEnabled(AEKeyType type, boolean enabled)
    • isEnabled

      public boolean isEnabled(AEKeyType type)
    • enabled

      public Map<AEKeyType,Boolean> enabled()
    • enabledSet

      public List<AEKeyType> enabledSet()
    • setEnabledSet

      public void setEnabledSet(List<AEKeyType> selected)
    • enabledPredicate

      public Predicate<AEKeyType> enabledPredicate()
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tag)
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)