Class EnchantableItemListProperty

java.lang.Object
johnsmith.configoverhauled.impl.core.state.DefaultProperty<List<ItemOrItems>>
johnsmith.configoverhauled.impl.core.state.DefaultProperty.List<ItemOrItems>
johnsmith.enchantmentcore.config.property.EnchantableItemListProperty
All Implemented Interfaces:
johnsmith.configoverhauled.api.Property<List<ItemOrItems>>

public class EnchantableItemListProperty extends johnsmith.configoverhauled.impl.core.state.DefaultProperty.List<ItemOrItems>
  • Nested Class Summary

    Nested classes/interfaces inherited from class johnsmith.configoverhauled.impl.core.state.DefaultProperty

    johnsmith.configoverhauled.impl.core.state.DefaultProperty.ARGBColor, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Block, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Blocks, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Boolean, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Bounded<T extends Number & Comparable<T>>, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Double, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Enum<E extends Enum<E>>, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Float, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Integer, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Item, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Items, johnsmith.configoverhauled.impl.core.state.DefaultProperty.List<E>, johnsmith.configoverhauled.impl.core.state.DefaultProperty.Long, johnsmith.configoverhauled.impl.core.state.DefaultProperty.RGBColor, johnsmith.configoverhauled.impl.core.state.DefaultProperty.String

    Nested classes/interfaces inherited from interface johnsmith.configoverhauled.api.Property

    johnsmith.configoverhauled.api.Property.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnchantableItemListProperty(String name, johnsmith.configoverhauled.api.Group parent, johnsmith.configoverhauled.api.data.ConfigScope scope, String description, List<ItemOrItems> defaultValue, com.mojang.serialization.Codec<ItemOrItems> elementCodec, boolean requiresRestart)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<String>
    collapseToKeys(List<net.minecraft.world.item.Item> items)
     
    static List<net.minecraft.world.item.Item>
     
    static boolean
    isItemEnchantable(net.minecraft.world.item.Item item)
     
    net.minecraft.core.HolderSet<net.minecraft.world.item.Item>
    resolveToHolderSet(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> fallback)
     

    Methods inherited from class johnsmith.configoverhauled.impl.core.state.DefaultProperty.List

    appendDefaultValueComment, elementCodec

    Methods inherited from class johnsmith.configoverhauled.impl.core.state.DefaultProperty

    acceptAuthoritativeUpdate, addListener, buildFormattedComment, codec, comment, decodeValueFromNbt, defaultValue, descriptionTranslationKey, encodeValueToNbt, equals, get, getUniqueId, hashCode, invalidate, isDynamic, load, notifyChange, onDisconnect, onSync, parentGroup, removeListener, resourceName, save, scope, set, translationKey, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnchantableItemListProperty

      public EnchantableItemListProperty(String name, johnsmith.configoverhauled.api.Group parent, johnsmith.configoverhauled.api.data.ConfigScope scope, String description, List<ItemOrItems> defaultValue, com.mojang.serialization.Codec<ItemOrItems> elementCodec, boolean requiresRestart)
  • Method Details

    • expandToItems

      public static List<net.minecraft.world.item.Item> expandToItems(List<String> entries)
    • collapseToKeys

      public static List<String> collapseToKeys(List<net.minecraft.world.item.Item> items)
    • isItemEnchantable

      public static boolean isItemEnchantable(net.minecraft.world.item.Item item)
    • resolveToHolderSet

      public net.minecraft.core.HolderSet<net.minecraft.world.item.Item> resolveToHolderSet(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> fallback)