Index

A B C E F G H I L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

adapter() - Element in annotation interface net.xun.lib.common.api.nbt.PersistentNbt
Specifies a custom serialization strategy for the annotated field.
ADAPTERS - Static variable in class net.xun.lib.common.internal.nbt.NbtAdapterCache
Concurrent registry map storing adapters by target type
addCustomRule(InventoryPredicate) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Deprecated.
This method is deprecated, see FuzzyConfig.withPredicateFilter(FilterMode, List) for new handling method
addItemToHands(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Attempts to add the item to the player's main hand or offhand, whichever is empty first.
ALL - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
ALL - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.FilterMode
Compare all data objects
allOf(List<InventoryPredicate>) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
allOf(InventoryPredicate...) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
allOf(InventoryPredicate, InventoryPredicate) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
and(InventoryPredicate) - Method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
anyOf(List<InventoryPredicate>) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
anyOf(InventoryPredicate...) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
anyOf(InventoryPredicate, InventoryPredicate) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
apply(LivingEntity, MobEffectInstance) - Method in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
 
applyEffectsWithStrategy(LivingEntity, List<MobEffectInstance>, EffectStackingStrategy) - Static method in class net.xun.lib.common.api.util.EffectUtils
Applies effects to an entity using a specified EffectStackingStrategy.
applySingleEffect(LivingEntity, MobEffectInstance, int, boolean) - Static method in class net.xun.lib.common.api.util.EffectUtils
Applies a single effect to the entity if conditions are met or if forced.
applySmartEffects(LivingEntity, List<MobEffectInstance>, int, boolean) - Static method in class net.xun.lib.common.api.util.EffectUtils
Applies effects to an entity only if they are not sufficiently present or if forced.
ARMOR - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
ARMOR_FIRST - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Armor (36-39) → Offhand (40) → Main inventory
ArmorSlotsUtils - Class in net.xun.lib.common.api.util
Provides specialized utilities for managing and inspecting player armor equipment.
asHex() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
 
asHex() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
 
asHex() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
asHex() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
 
asHSL() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
asHSV() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
asRGB() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
 
asRGB() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
 
asRGB() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
asRGB() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
 
AT_LEAST - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Match if source has equal or greater count

B

BASIC - Static variable in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Preconfigured matcher that ignores durability, enchantments, and all data components.
BLACKLIST - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.FilterMode
Exclude specified objects from comparison
blendAdd(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendAverage(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendDarken(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendLighten(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendMultiply(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendOverlay(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
blendScreen(IColorBase, IColorBase) - Static method in class net.xun.lib.common.api.misc.color.ColorCombiner
 
BlockEntityDataManager - Class in net.xun.lib.common.internal.block.entity
Central manager for block entity data operations.
BlockEntityDataManager() - Constructor for class net.xun.lib.common.internal.block.entity.BlockEntityDataManager
 
BlockEntityMixin - Class in net.xun.lib.common.internal.mixin
 
BlockEntityMixin() - Constructor for class net.xun.lib.common.internal.mixin.BlockEntityMixin
 
BlockPosUtils - Class in net.xun.lib.common.api.util
 
BlockPosUtils() - Constructor for class net.xun.lib.common.api.util.BlockPosUtils
 
blue() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns the value of the blue record component.

C

clearBothHands(Player) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Clears both the main hand and offhand of the player.
collectMatching(Container, InventoryPredicate, SlotRange) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Collects copies of all item stacks matching the predicate.
collectMatching(Container, InventoryPredicate, InventorySection) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Collects copies of items from a container section matching the predicate.
ColorCombiner - Class in net.xun.lib.common.api.misc.color
 
ColorCombiner() - Constructor for class net.xun.lib.common.api.misc.color.ColorCombiner
 
ColorConverter - Class in net.xun.lib.common.api.misc.color
 
ColorConverter() - Constructor for class net.xun.lib.common.api.misc.color.ColorConverter
 
combine(SlotRange...) - Static method in class net.xun.lib.common.api.inventory.slot.SlotRange
Combines multiple slot ranges into one.
combineAsNamespacedID(String, String...) - Static method in class net.xun.lib.common.api.util.CommonUtils
Combines a namespace with path components into a namespaced ID string.
Common Causes - Search tag in exception class net.xun.lib.common.api.item.fuzzy.InvalidMatcherConfigurationException
Section
CommonUtils - Class in net.xun.lib.common.api.util
 
CommonUtils() - Constructor for class net.xun.lib.common.api.util.CommonUtils
 
contains(int, Container) - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
Checks if a slot is within this range for a specific container.
copy() - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Creates a deep copy of this configuration.
countArmorPiecesOfMaterial(Player, Holder<ArmorMaterial>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
countDamagedPieces(Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 

E

EffectStackingStrategy - Enum Class in net.xun.lib.common.api.world.effect
Defines strategies for applying mob effects to entities, controlling how new effects interact with existing ones.
EffectUtils - Class in net.xun.lib.common.api.util
Utility class for applying mob effects to entities with various strategies and conditions.
EffectUtils() - Constructor for class net.xun.lib.common.api.util.EffectUtils
 
equals(Object) - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
equals(Object) - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Indicates whether some other object is "equal to" this one.
EXACT - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Require exact count matches
EXTEND_DURATION - Enum constant in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Combines durations and keeps the highest amplifier when reapplying.
extractItems(Container, InventoryPredicate, int, SlotRange, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Removes items from a container with slot priority control.
extractItems(Container, InventoryPredicate, int, InventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Removes items from a specific container section.
extractItems(Player, InventoryPredicate, int, InventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
extractSingleItem(Container, InventoryPredicate, InventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Removes a single item from a container section.
extractSingleItem(Container, InventoryPredicate, SlotRange, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Removes a single item from the specified slot range.
extractSingleItem(Player, InventoryPredicate, InventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 

F

Features - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section
findAdapter(Class<?>) - Static method in class net.xun.lib.common.internal.nbt.NbtAdapterCache
Retrieves the appropriate adapter for a given type with fallback handling.
findFirstMatchingSlot(Container, InventoryPredicate, SlotRange) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Finds the first slot in the container that contains an item matching the predicate.
findFirstMatchingSlot(Container, InventoryPredicate, InventorySection) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Finds the first slot in a container section with a matching item.
findFirstMatchingSlot(Player, InventoryPredicate, InventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
FORCE_OVERRIDE - Enum constant in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Always applies the new effect, overwriting any existing version.
ForgePlatformHelper - Class in net.xun.lib.forge.internal.platform
 
ForgePlatformHelper() - Constructor for class net.xun.lib.forge.internal.platform.ForgePlatformHelper
 
FORWARD - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Slots 0 → max (standard iteration)
FuzzyConfig - Class in net.xun.lib.common.api.item.fuzzy
Configuration container for FuzzyMatcher settings, defining comparison rules and component filtering behavior.
FuzzyConfig() - Constructor for class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
 
FuzzyConfig.CountMode - Enum Class in net.xun.lib.common.api.item.fuzzy
Enum defining count comparison strategies: FuzzyConfig.CountMode.IGNORE - Disregards item counts entirely FuzzyConfig.CountMode.EXACT - Requires identical stack sizes FuzzyConfig.CountMode.AT_LEAST - Requires source count ≥ target count
FuzzyConfig.FilterMode - Enum Class in net.xun.lib.common.api.item.fuzzy
Enum defining filtering modes: FuzzyConfig.FilterMode.WHITELIST - Only compare specified objects FuzzyConfig.FilterMode.BLACKLIST - Compare all objects except specified
FuzzyMatcher - Class in net.xun.lib.common.api.item.fuzzy
Advanced item comparison system with configurable matching rules, supporting both individual item checks and pairwise item comparisons.

G

GenericNbtAdapter - Class in net.xun.lib.common.api.nbt.adapters
Default NBT adapter handling serialization through reflection-based NbtUtils methods.
GenericNbtAdapter() - Constructor for class net.xun.lib.common.api.nbt.adapters.GenericNbtAdapter
 
getAdapter() - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
 
getAdapterFor(Class<T>) - Static method in interface net.xun.lib.common.api.nbt.INbtAdapter
Retrieves the most appropriate adapter for a given type from the registry.
getAllWornArmor(Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
getArmorDurabilityPercentage(int, Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
getArmorInSlot(Player, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
getAvailableSpace(Container, ItemStack) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Calculates total available space for a specific item type.
getContainerSlot(int, int, int) - Static method in class net.xun.lib.common.api.inventory.slot.SlotGetter
Converts GUI grid coordinates (row and column) to the corresponding container slot index.
getDisc(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 
getEnd() - Method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
getEnd() - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
 
getEnvironmentName() - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
Gets the name of the environment type as a string.
getField() - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
 
getGetter() - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
 
getHollowCube(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 
getHotbarSlotIndex(int) - Static method in class net.xun.lib.common.api.inventory.slot.SlotGetter
Returns the hotbar slot index corresponding to the given hotbar number.
getInventorySlotIndex(int, int, InventorySection) - Static method in class net.xun.lib.common.api.inventory.slot.SlotGetter
Converts grid coordinates (row and column) within a specific inventory section to the corresponding inventory slot index.
getKey(Object) - Static method in class net.xun.lib.common.api.util.CommonUtils
Retrieves the registry key for a given object by checking known registries.
getModId() - Static method in class net.xun.lib.common.internal.misc.ModIDManager
 
getPlatformName() - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
Gets the name of the current platform
getPlatformName() - Method in class net.xun.lib.forge.internal.platform.ForgePlatformHelper
 
getRegistryID(Object) - Static method in class net.xun.lib.common.api.util.CommonUtils
Gets the path component of the registry key for the given object.
getRegistryID(ItemLike) - Static method in class net.xun.lib.common.api.util.CommonUtils
Gets the path component of the registry key for an ItemLike object.
getSetter() - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
 
getSlotOrder(Container, SlotRange) - Method in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Generates slot access order based on container type and range constraints
getSlotRange() - Method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
Creates a dynamic slot range that adapts to container size.
getSlots(Container) - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
Gets slots as an iterable sequence adjusted for container size.
getSphere(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 
getSquare(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 
getStart() - Method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
getStart() - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
 
getTargetType() - Method in class net.xun.lib.common.api.nbt.adapters.GenericNbtAdapter
Specifies Object as the fallback target type, ensuring this adapter is used only when no type-specific adapters are available.
getTargetType() - Method in interface net.xun.lib.common.api.nbt.INbtAdapter
Returns the exact class this adapter is designed to handle.
getTotalEnchantmentLevel(Player, Holder<Enchantment>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
green() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns the value of the green record component.

H

hasArmorInSlot(Player, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if a specific armor slot contains any armor item.
hasEmptyHand(Player) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Checks if either of the player's hands is empty.
hasEmptyHand(Player, InteractionHand) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
hasEnchantmentInSlot(Player, int, Holder<Enchantment>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
hasFullArmorSet(Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
hasFullArmorSetOfMaterial(Player, Holder<ArmorMaterial>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
hashCode() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Returns a hash code value for this object.
hashCode() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Returns a hash code value for this object.
hashCode() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
hashCode() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns a hash code value for this object.
hasItem(Container, InventoryPredicate, SlotRange) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Checks if a container has at least one item matching the predicate.
hasItem(Container, InventoryPredicate, InventorySection) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Checks if a container's section contains at least one matching item.
hasItem(Player, InventoryPredicate, InventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
hasItemCount(Container, InventoryPredicate, int, SlotRange) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Checks if a container contains at least minCount items matching the predicate.
hasItemCount(Container, InventoryPredicate, int, InventorySection) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Checks if a container's section contains at least minCount matching items.
hasItemCount(Player, InventoryPredicate, int, InventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
hasNext() - Method in class net.xun.lib.common.api.inventory.slot.SlotIterator
 
hasSetBonus(Player, Holder<ArmorMaterial>, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
hasSufficientEffect(LivingEntity, MobEffectInstance, int) - Static method in class net.xun.lib.common.api.util.EffectUtils
Checks if the entity has a sufficient version of the given effect.
HOTBAR - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
HSLColor - Record Class in net.xun.lib.common.api.misc.color
Represents a color in the HSL (Hue, Saturation, Lightness) color space.
HSLColor(float, float, float) - Constructor for record class net.xun.lib.common.api.misc.color.HSLColor
Constructs an HSLColor with the specified hue, saturation, and lightness.
HSLtoRGB(HSLColor) - Static method in class net.xun.lib.common.api.misc.color.ColorConverter
 
HSVColor - Record Class in net.xun.lib.common.api.misc.color
Represents a color in the HSV (Hue, Saturation, Value) color space.
HSVColor(float, float, float) - Constructor for record class net.xun.lib.common.api.misc.color.HSVColor
Constructs an HSVColor with the specified hue, saturation, and lightness.
HSVtoRGB(HSVColor) - Static method in class net.xun.lib.common.api.misc.color.ColorConverter
 
hue() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Returns the value of the hue record component.
hue() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Returns the value of the hue record component.

I

IColorBase - Interface in net.xun.lib.common.api.misc.color
 
IGNORE - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Ignore item counts in comparisons
IGNORE_ALL - Static variable in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Preconfigured matcher that ignores count, durability, enchantments, and all data components.
INbtAdapter<T> - Interface in net.xun.lib.common.api.nbt
Defines a type-specific serialization contract for converting objects to/from NBT format.
init() - Static method in class net.xun.lib.common.internal.XunLibCommon
 
initialize() - Static method in class net.xun.lib.common.internal.nbt.NbtAdapterCache
Initializes the adapter registry using ServiceLoader discovery.
initialized - Static variable in class net.xun.lib.common.internal.nbt.NbtAdapterCache
Initialization state flag (volatile for double-checked locking)
insertAndDiscardOverflow(Container, ItemStack) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Adds items to a container and permanently discards any overflow
insertItem(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
 
insetItem(Container, ItemStack) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Attempts to add an item stack to a container.
InvalidColorFormatException - Exception Class in net.xun.lib.common.api.misc.color
 
InvalidColorFormatException(String) - Constructor for exception class net.xun.lib.common.api.misc.color.InvalidColorFormatException
 
InvalidMatcherConfigurationException - Exception Class in net.xun.lib.common.api.item.fuzzy
Exception thrown when invalid configuration combinations are detected in a FuzzyMatcher.
InvalidMatcherConfigurationException(String) - Constructor for exception class net.xun.lib.common.api.item.fuzzy.InvalidMatcherConfigurationException
 
InventoryCycleOrder - Enum Class in net.xun.lib.common.api.inventory.slot
 
InventoryPredicate - Interface in net.xun.lib.common.api.inventory.predicates
 
InventorySection - Enum Class in net.xun.lib.common.api.inventory.slot
Represents inventory sections with dynamic slot ranges and validation.
InventoryUtils - Class in net.xun.lib.common.api.util
Universal inventory utilities for all container types.
InventoryUtils() - Constructor for class net.xun.lib.common.api.util.InventoryUtils
 
IPlatformHelper - Interface in net.xun.lib.common.internal.platform.services
 
IS_DAMAGED - Static variable in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
IS_EMPTY - Static variable in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
IS_FULL_STACK - Static variable in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
isArmorDamaged(int, Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
isArmorMaterialInSlot(Player, int, Holder<ArmorMaterial>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if armor in a specific slot matches given material.
isDevelopmentEnvironment() - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
Check if the game is currently in a development environment.
isDevelopmentEnvironment() - Method in class net.xun.lib.forge.internal.platform.ForgePlatformHelper
 
isModLoaded(String) - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
Checks if a mod with the given id is loaded.
isModLoaded(String) - Method in class net.xun.lib.forge.internal.platform.ForgePlatformHelper
 
isWithinCube(BlockPos, BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 
isWithinSphere(BlockPos, BlockPos, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 

L

lightness() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Returns the value of the lightness record component.
load(Class<T>) - Static method in class net.xun.lib.common.internal.platform.Services
 
load(Object, CompoundTag) - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
Reads a field's value from NBT using its configured adapter
load(Tag) - Method in class net.xun.lib.common.api.nbt.adapters.GenericNbtAdapter
Deserializes objects using NbtUtils's reflection-based approach.
load(Tag) - Method in interface net.xun.lib.common.api.nbt.INbtAdapter
Reconstructs an object instance from its NBT representation.
loadPersistedFields(BlockEntity, CompoundTag) - Static method in class net.xun.lib.common.internal.block.entity.BlockEntityDataManager
Loads an object's state from NBT using annotated fields.
LOGGER - Static variable in class net.xun.lib.common.internal.XunLibConstants
 

M

MAIN_INVENTORY - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
matches(int) - Method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
Checks if a slot belongs to this section in a standard player inventory.
matches(ItemStack, ItemStack) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Tests if two item stacks match according to the configured rules.
matchesAllArmor(Player, InventoryPredicate) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
matchesInSlot(Player, int, InventoryPredicate) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
matchesItem(List<Item>) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
matchesItem(Item) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
matchesItem(Item...) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
matchesTag(TagKey<Item>) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 
MixinTitleScreen - Class in net.xun.lib.forge.internal.mixin
 
MixinTitleScreen() - Constructor for class net.xun.lib.forge.internal.mixin.MixinTitleScreen
 
MOD_ID - Static variable in class net.xun.lib.common.internal.XunLibConstants
 
ModIDManager - Class in net.xun.lib.common.internal.misc
 
ModIDManager() - Constructor for class net.xun.lib.common.internal.misc.ModIDManager
 
modResourceLocation(String) - Static method in class net.xun.lib.common.api.util.CommonUtils
Creates a ResourceLocation using the auto-detected or manually set mod ID.
ModSetup - Class in net.xun.lib.common.api
 
ModSetup() - Constructor for class net.xun.lib.common.api.ModSetup
 
move(BlockPos, Direction, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
 

N

NAME - Static variable in class net.xun.lib.common.internal.XunLibConstants
 
namespacedID(String...) - Static method in class net.xun.lib.common.api.util.CommonUtils
Generates a namespaced ID string using the current mod ID.
NbtAdapterCache - Class in net.xun.lib.common.internal.nbt
Registry cache for NBT serialization adapters with thread-safe initialization.
NbtAdapterCache() - Constructor for class net.xun.lib.common.internal.nbt.NbtAdapterCache
 
NbtFieldAccessor - Class in net.xun.lib.common.internal.nbt
Runtime field accessor for PersistentNbt annotated fields.
NbtFieldAccessor(Field) - Constructor for class net.xun.lib.common.internal.nbt.NbtFieldAccessor
 
NbtUtils - Class in net.xun.lib.common.internal.misc
Core NBT serialization utilities with extended type support and reflection capabilities.
NbtUtils() - Constructor for class net.xun.lib.common.internal.misc.NbtUtils
 
needsRepair(int, Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
net.xun.lib.common.api - package net.xun.lib.common.api
 
net.xun.lib.common.api.inventory.predicates - package net.xun.lib.common.api.inventory.predicates
 
net.xun.lib.common.api.inventory.slot - package net.xun.lib.common.api.inventory.slot
 
net.xun.lib.common.api.item.fuzzy - package net.xun.lib.common.api.item.fuzzy
 
net.xun.lib.common.api.misc.color - package net.xun.lib.common.api.misc.color
 
net.xun.lib.common.api.nbt - package net.xun.lib.common.api.nbt
 
net.xun.lib.common.api.nbt.adapters - package net.xun.lib.common.api.nbt.adapters
 
net.xun.lib.common.api.util - package net.xun.lib.common.api.util
 
net.xun.lib.common.api.world.effect - package net.xun.lib.common.api.world.effect
 
net.xun.lib.common.internal - package net.xun.lib.common.internal
 
net.xun.lib.common.internal.block.entity - package net.xun.lib.common.internal.block.entity
 
net.xun.lib.common.internal.misc - package net.xun.lib.common.internal.misc
 
net.xun.lib.common.internal.mixin - package net.xun.lib.common.internal.mixin
 
net.xun.lib.common.internal.nbt - package net.xun.lib.common.internal.nbt
 
net.xun.lib.common.internal.platform - package net.xun.lib.common.internal.platform
 
net.xun.lib.common.internal.platform.services - package net.xun.lib.common.internal.platform.services
 
net.xun.lib.forge.internal - package net.xun.lib.forge.internal
 
net.xun.lib.forge.internal.mixin - package net.xun.lib.forge.internal.mixin
 
net.xun.lib.forge.internal.platform - package net.xun.lib.forge.internal.platform
 
next() - Method in class net.xun.lib.common.api.inventory.slot.SlotIterator
 
not(InventoryPredicate) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 

O

of(int, int) - Static method in class net.xun.lib.common.api.inventory.slot.SlotRange
Creates a fixed SlotRange from explicit values.
OFFHAND - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventorySection
 
ofType(Class<? extends Item>) - Static method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
Creates a predicate matching items of specific class hierarchy
or(InventoryPredicate) - Method in interface net.xun.lib.common.api.inventory.predicates.InventoryPredicate
 

P

PersistentNbt - Annotation Interface in net.xun.lib.common.api.nbt
Annotation marking fields for automatic NBT serialization/deserialization processing.
PLATFORM - Static variable in class net.xun.lib.common.internal.platform.Services
 
PLAYER_PRIORITY - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Hotbar (0-8) → Main inventory (9-35) → Offhand (40)
PlayerInventoryUtils - Class in net.xun.lib.common.api.util
Specific utilities for managing player inventory, disable client-side by default
PlayerInventoryUtils() - Constructor for class net.xun.lib.common.api.util.PlayerInventoryUtils
 
Preconfigured Matchers - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section

R

readField(Tag) - Static method in class net.xun.lib.common.internal.misc.NbtUtils
Reconstructs an object from NBT data with automatic type resolution.
red() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns the value of the red record component.
REVERSE - Enum constant in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Slots max → 0 (reverse iteration)
RGBColor - Record Class in net.xun.lib.common.api.misc.color
Represents a color in the RGB (Red, Green, Blue) color space.
RGBColor(float, float, float) - Constructor for record class net.xun.lib.common.api.misc.color.RGBColor
Constructs an RGBColor with the specified red, green, and blue.
RGBtoHSL(RGBColor) - Static method in class net.xun.lib.common.api.misc.color.ColorConverter
 
RGBtoHSV(RGBColor) - Static method in class net.xun.lib.common.api.misc.color.ColorConverter
 

S

saturation() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Returns the value of the saturation record component.
saturation() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Returns the value of the saturation record component.
save(Object) - Method in class net.xun.lib.common.api.nbt.adapters.GenericNbtAdapter
Serializes objects using NbtUtils's reflection-based approach.
save(T) - Method in interface net.xun.lib.common.api.nbt.INbtAdapter
Converts an object instance into its NBT representation.
savePersistedFields(BlockEntity, CompoundTag) - Static method in class net.xun.lib.common.internal.block.entity.BlockEntityDataManager
Saves an object's state to NBT using annotated fields.
scanFields(Class<?>, Class<? extends Annotation>) - Static method in class net.xun.lib.common.internal.block.entity.BlockEntityDataManager
 
Services - Class in net.xun.lib.common.internal.platform
 
Services() - Constructor for class net.xun.lib.common.internal.platform.Services
 
setItemInMainHand(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Sets the item in the player's main hand.
setItemInOffHand(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Sets the item in the player's offhand.
setModId(String) - Static method in class net.xun.lib.common.api.ModSetup
 
setModId(String) - Static method in class net.xun.lib.common.internal.misc.ModIDManager
 
single(int) - Static method in class net.xun.lib.common.api.inventory.slot.SlotRange
Creates a single-slot range.
SlotGetter - Class in net.xun.lib.common.api.inventory.slot
Utility class for calculating inventory slot indices based on grid coordinates (rows/columns), inventory sections, and container-to-inventory conversions.
SlotGetter() - Constructor for class net.xun.lib.common.api.inventory.slot.SlotGetter
 
SlotIterator - Class in net.xun.lib.common.api.inventory.slot
 
SlotIterator(int, int) - Constructor for class net.xun.lib.common.api.inventory.slot.SlotIterator
 
SlotRange - Class in net.xun.lib.common.api.inventory.slot
Flexible slot range that can adapt to different container sizes.
SlotRange(IntSupplier, IntSupplier) - Constructor for class net.xun.lib.common.api.inventory.slot.SlotRange
 
stream(Container) - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
Gets slots as a stream adjusted for container size.
STRICT - Static variable in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Strict matcher requiring exact match of: Item type Count Durability Enchantments All other data components
swapHands(Player) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Swaps items between the player's main hand and offhand.

T

toString() - Method in record class net.xun.lib.common.api.misc.color.HSLColor
Returns a string representation of this record class.
toString() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Returns a string representation of this record class.
toString() - Method in interface net.xun.lib.common.api.misc.color.IColorBase
 
toString() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns a string representation of this record class.

U

UPGRADE_EXISTING - Enum constant in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Applies effect only if it doesn't exist or has a higher amplifier than current.
Usage Examples - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section

V

validateContainer(Container) - Static method in class net.xun.lib.common.api.util.InventoryUtils
 
validateContainer(Container, boolean) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Validates container accessibility and integrity.
value() - Method in record class net.xun.lib.common.api.misc.color.HSVColor
Returns the value of the value record component.
valueOf(String) - Static method in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.FilterMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Returns the enum constant of this class with the specified name.
values() - Static method in enum class net.xun.lib.common.api.inventory.slot.InventoryCycleOrder
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.xun.lib.common.api.inventory.slot.InventorySection
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.FilterMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Returns an array containing the constants of this enum class, in the order they are declared.
VERSION - Static variable in class net.xun.lib.common.internal.XunLibConstants
 

W

WHITELIST - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.FilterMode
Include only specified objects in comparison
withComponentFilter(FuzzyConfig.FilterMode, Set<DataComponentType<?>>) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Configures data component filtering using specified mode and components
withCountMode(FuzzyConfig.CountMode) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Configures stack count comparison strategy
withIgnoreDurability(boolean) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Sets whether durability values should be ignored in comparisons
withIgnoreEnchantments(boolean) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Sets whether enchantments should be ignored in comparisons
withPredicateFilter(FuzzyConfig.FilterMode, List<InventoryPredicate>) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Configures custom predicate filtering using specified mode and predicates.
write(Object, CompoundTag) - Method in class net.xun.lib.common.internal.nbt.NbtFieldAccessor
Writes a field's value to NBT using its configured adapter
writeField(Object) - Static method in class net.xun.lib.common.internal.misc.NbtUtils
Serializes an object to NBT with complete type preservation and structure.

X

XunLibCommon - Class in net.xun.lib.common.internal
 
XunLibCommon() - Constructor for class net.xun.lib.common.internal.XunLibCommon
 
XunLibConstants - Class in net.xun.lib.common.internal
 
XunLibConstants() - Constructor for class net.xun.lib.common.internal.XunLibConstants
 
XunLibForge - Class in net.xun.lib.forge.internal
 
XunLibForge() - Constructor for class net.xun.lib.forge.internal.XunLibForge
 
A B C E F G H I L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form