Package appeng.api.util
Class KeyTypeSelection
java.lang.Object
appeng.api.util.KeyTypeSelection
Helper class to store the selection of key types.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKeyTypeSelection
(KeyTypeSelection.Listener listener, Predicate<AEKeyType> allowKeyType) KeyTypeSelection
(Runnable listener, Predicate<AEKeyType> allowKeyType) -
Method Summary
Modifier and TypeMethodDescriptionenabled()
static KeyTypeSelection
boolean
void
readFromNBT
(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries) void
setEnabled
(AEKeyType type, boolean enabled) void
setEnabledSet
(List<AEKeyType> selected) void
writeToNBT
(net.minecraft.nbt.CompoundTag tag)
-
Constructor Details
-
KeyTypeSelection
-
KeyTypeSelection
-
-
Method Details
-
forStack
public static KeyTypeSelection forStack(net.minecraft.world.item.ItemStack stack, Predicate<AEKeyType> allowKeyType) -
setEnabled
-
isEnabled
-
enabled
-
enabledSet
-
setEnabledSet
-
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)
-