Index

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

A

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.PlayerInventorySection
 
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
 
ambient() - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
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
 
applyAttributes(Item.Properties, float, float) - Method in interface net.xun.lib.common.api.item.tools.AttributeHelper
Applies combat attributes to tool properties.
applyAttributes(Item.Properties, float, float) - Method in class net.xun.lib.common.api.item.tools.GenericAttributeHelper
Applies standard combat attributes using Minecraft's attribute system.
applyEffectsWithStrategy(LivingEntity, List<MobEffectInstance>, EffectStackingStrategy) - Static method in class net.xun.lib.common.api.util.MobEffectUtils
Applies effects to an entity using a specified EffectStackingStrategy.
applySingleEffect(LivingEntity, MobEffectInstance, int, boolean) - Static method in class net.xun.lib.common.api.util.MobEffectUtils
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.MobEffectUtils
Applies effects to an entity only if they are not sufficiently present or if forced.
applyTo(LivingEntity) - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
ARMOR - Enum constant in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
 
ARMOR_FIRST - Enum constant in enum class net.xun.lib.common.api.inventory.InventoryCycleOrder
Armor (36-39) → Offhand (40) → Main inventory
ArmorConfigurator - Interface in net.xun.lib.common.api.item.armor
 
ArmorSet - Class in net.xun.lib.common.api.item.armor
Represents a complete set of armor (helmet, chestplate, leggings, boots).
ArmorSet(String, Holder<ArmorMaterial>, int, Supplier<Item.Properties>, ArmorConfigurator) - Constructor for class net.xun.lib.common.api.item.armor.ArmorSet
 
ArmorSet.Builder - Class in net.xun.lib.common.api.item.armor
Builder for constructing ArmorSet instances.
ArmorSlotsUtils - Class in net.xun.lib.common.api.util
Provides specialized utilities for managing and inspecting player armor equipment.
ArmorType - Enum Class in net.xun.lib.common.api.item.armor
 
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
 
asItem() - Method in class net.xun.lib.common.api.registries.RegistryBlock
Gets the corresponding item for this block.
asItem() - Method in class net.xun.lib.common.api.registries.RegistryItem
Gets this item instance.
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
AttributeHelper - Interface in net.xun.lib.common.api.item.tools
Defines a strategy for applying attribute modifiers to tool items.
AXE - Enum constant in enum class net.xun.lib.common.api.item.tools.ToolType
Axe tool type

B

BASIC - Static variable in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Preconfigured matcher that ignores durability, enchantments, and all data components.
bind(Holder<Item>) - Method in class net.xun.lib.common.api.registries.RegistryItem
Binds this holder to a concrete registry holder.
bind(Holder<Block>) - Method in class net.xun.lib.common.api.registries.RegistryBlock
Binds this holder to a concrete registry holder.
bind(Holder<R>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
Binds this holder to a concrete registry holder.
bind(RegistryHolder<Item, I>) - Method in class net.xun.lib.common.api.registries.Register.Items
Binds a registry holder to the actual registry entry.
bind(RegistryHolder<Block, B>) - Method in class net.xun.lib.common.api.registries.Register.Blocks
Binds a registry holder to the actual registry entry.
bind(RegistryHolder<R, T>) - Method in class net.xun.lib.common.api.registries.Register
Binds a registry holder to the actual registry entry.
bind(RegistryHolder<T, I>) - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister
 
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
 
BlockPosUtils - Class in net.xun.lib.common.api.util
 
Blocks(String) - Constructor for class net.xun.lib.common.api.registries.Register.Blocks
Constructs a block register.
Blocks(String) - Constructor for class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Blocks
 
blue() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns the value of the blue record component.
BOOTS - Enum constant in enum class net.xun.lib.common.api.item.armor.ArmorType
 
build() - Method in class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Constructs the configured ArmorSet.
build() - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Constructs the configured ToolSet.
build() - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
Builder(String, Holder<ArmorMaterial>) - Constructor for class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Constructs a new builder for an armor set.
Builder(String, Tier, AttributeHelper) - Constructor for class net.xun.lib.common.api.item.tools.ToolSet.Builder
Constructs a new builder for a tool set.

C

canSerializeIn(HolderOwner<R>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
CHESTPLATE - Enum constant in enum class net.xun.lib.common.api.item.armor.ArmorType
 
clearBothHands(Player) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Clears both the main hand and offhand of the player.
clearEffect(LivingEntity, MobEffectInstance) - Static method in class net.xun.lib.common.api.util.MobEffectUtils
Removes the specified effect type from the entity.
clearEffects(LivingEntity) - Static method in class net.xun.lib.common.api.util.MobEffectUtils
Removes all active effects from the entity.
clientTick(Level, BlockPos, BlockState) - Method in interface net.xun.lib.common.api.block.entity.ITickableBlockEntity
 
clientTick(Level, BlockPos, BlockState) - Method in interface net.xun.lib.common.internal.block.entity.ClientTickable
 
ClientTickable - Interface in net.xun.lib.common.internal.block.entity
 
collectMatching(Container, InventoryPredicate, PlayerInventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Collects copies of items from an inventory section matching the predicate.
collectMatching(Container, InventoryPredicate, SlotRange) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Collects copies of all item stacks 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.exceptions.InvalidMatcherConfigurationException
Section
CommonUtils - Class in net.xun.lib.common.api.util
 
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
 
create(Registry<T>, String) - Static method in class net.xun.lib.common.api.registries.Register
Creates a register for the specified registry and namespace.
create(ResourceKey<Registry<T>>, String) - Static method in class net.xun.lib.common.api.registries.Register
Creates a register for the specified registry key and namespace.
create(ResourceKey<R>, Supplier<T>) - Static method in class net.xun.lib.common.api.registries.RegistryHolder
 
create(Tier, Item.Properties) - Method in enum class net.xun.lib.common.api.item.tools.ToolType
Creates a tool item instance.
createAABBFromCenter(BlockPos, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Creates an AABB centered at the specified BlockPos with given radius.
createAABBFromCenter(BlockPos, double, double, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Creates an AABB centered at the specified BlockPos with given radii in each axis.
createAABBFromCorners(BlockPos, BlockPos) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Creates an AABB spanning between two BlockPos corners (inclusive).
createArmor(ArmorType, Holder<ArmorMaterial>, int, Item.Properties) - Method in interface net.xun.lib.common.api.item.armor.ArmorConfigurator
 
createBlock(ResourceKey<Block>, Supplier<T>) - Static method in class net.xun.lib.common.api.registries.RegistryBlock
Creates a new block registry holder using a ResourceKey.
createBlock(ResourceLocation, Supplier<T>) - Static method in class net.xun.lib.common.api.registries.RegistryBlock
Creates a new block registry holder using a ResourceLocation.
createBlockRegister(String) - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
 
createBlockRegister(String) - Method in class net.xun.lib.neoforge.internal.platform.NeoForgePlatformHelper
 
createBlocks(String) - Static method in class net.xun.lib.common.api.registries.Register
Creates a specialized block register for the given namespace.
createHolder(ResourceKey<Item>, Supplier<T>) - Method in class net.xun.lib.common.api.registries.Register.Items
 
createHolder(ResourceKey<Block>, Supplier<T>) - Method in class net.xun.lib.common.api.registries.Register.Blocks
 
createHolder(ResourceKey<R>, Supplier<T>) - Method in class net.xun.lib.common.api.registries.Register
 
createItem(ResourceKey<Item>, Supplier<T>) - Static method in class net.xun.lib.common.api.registries.RegistryItem
Creates a new item registry holder using a ResourceKey.
createItem(ResourceLocation, Supplier<T>) - Static method in class net.xun.lib.common.api.registries.RegistryItem
Creates a new item registry holder using a ResourceLocation.
createItemRegister(String) - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
 
createItemRegister(String) - Method in class net.xun.lib.neoforge.internal.platform.NeoForgePlatformHelper
 
createItems(String) - Static method in class net.xun.lib.common.api.registries.Register
Creates a specialized item register for the given namespace.
createKey(ResourceKey<? extends Registry<T>>, String) - Static method in class net.xun.lib.common.api.util.CommonUtils
Creates a resource key from a registry and a path
createRegister(ResourceKey<? extends Registry<T>>, String) - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
 
createRegister(ResourceKey<? extends Registry<T>>, String) - Method in class net.xun.lib.neoforge.internal.platform.NeoForgePlatformHelper
 
createTemplateUpgradeIconList() - Static method in class net.xun.lib.common.api.item.UpgradeSmithingTemplateItem
Creates a default list of empty icons for equipment slots.
createTemplateUpgradeMaterialList() - Static method in class net.xun.lib.common.api.item.UpgradeSmithingTemplateItem
Creates a default list of empty icons for material slots.
createTicker(BlockEntityType<?>) - Static method in interface net.xun.lib.common.api.block.entity.ITickableBlockEntity
 
createTool(ToolType, Tier, Item.Properties) - Method in interface net.xun.lib.common.api.item.tools.ToolConfigurator
Creates a tool item instance.

D

DEFAULT - Static variable in interface net.xun.lib.common.api.item.armor.ArmorConfigurator
 
DEFAULT - Static variable in interface net.xun.lib.common.api.item.tools.ToolConfigurator
Default configuration using standard tool constructors.
doesAABBIntersectBlock(AABB, BlockPos) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Checks if a BlockPos's corresponding block area intersects with an AABB.

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.
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.
equals(Object) - Method in class net.xun.lib.common.api.registries.RegistryHolder
EXACT - Enum constant in enum class net.xun.lib.common.api.item.fuzzy.FuzzyConfig.CountMode
Require exact count matches
expandAABB(AABB, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Expands an AABB by specified amounts in each direction.
expandAABB(AABB, double, double, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Expands an AABB by specified amounts in each direction.
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(Player, InventoryPredicate, int, PlayerInventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Removes items from a specific inventory 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, PlayerInventorySection, InventoryCycleOrder) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Removes a single item from an inventory section.

F

Features - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section
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(Player, InventoryPredicate, PlayerInventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Finds the first slot in an inventory section with a matching item.
FORCE_OVERRIDE - Enum constant in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
Always applies the new effect, overwriting any existing version.
FORWARD - Enum constant in enum class net.xun.lib.common.api.inventory.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

GenericAttributeHelper - Class in net.xun.lib.common.api.item.tools
Default implementation applying standard Minecraft attack attributes.
GenericAttributeHelper() - Constructor for class net.xun.lib.common.api.item.tools.GenericAttributeHelper
 
get() - Method in class net.xun.lib.common.api.registries.RegistryHolder
get() - Method in class net.xun.lib.common.api.util.LazyReference
 
getAll() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Retrieves all registered armor items in this set.
getAll() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Retrieves all registered tool items in this set.
getAllWornArmor(Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
getArmorDurabilityPercentage(Player, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Get the remaining armor durability as percentage
getArmorInSlot(Player, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Get the armor in the specific slot
getAssociatedType() - Method in interface net.xun.lib.common.api.block.entity.TickingEntityBlock
 
getAvailableSpace(Container) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Calculates total available space of a container
getAvailableSpace(Player) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Calculates total available space for a specific item type.
getAxe() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the axe item from this tool set.
getBlocksInAABB(AABB) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Retrieves all BlockPos that intersect with the given AABB.
getBoots() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Gets the boots item from this armor set.
getChestplate() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Gets the chestplate item from this armor set.
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
Generates a 2D circular disc of BlockPos around a center point at the same Y level.
getEnd() - Method in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
 
getEnd() - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
 
getEntries() - Method in class net.xun.lib.common.api.registries.Register
Gets all registry holder entries.
getEnvironmentName() - Method in interface net.xun.lib.common.internal.platform.services.IPlatformHelper
Gets the name of the environment type as a string.
getHelmet() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Gets the helmet item from this armor set.
getHoe() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the hoe item from this tool set.
getHollowCube(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Generates positions for a hollow cubic frame around a center point.
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.
getIntersectionAABB(AABB, AABB) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Computes the intersection of two AABBs if they overlap.
getInventorySlotIndex(int, int, PlayerInventorySection) - 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.
getItemInSlot(Container, int) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Get the item of the specific slot in the container
getItemInSlot(Player, int) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Get the item of the specific slot in the inventory
getItemsForRegistration() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Retrieves all armor items in this set for registration purposes.
getItemsForRegistration() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Retrieves all tool items in this set for registration purposes.
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.
getLeggings() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Gets the leggings item from this armor set.
getModEventBus() - Static method in class net.xun.lib.neoforge.internal.XunLibNeoForge
 
getModId() - Static method in class net.xun.lib.common.internal.misc.ModIDManager
 
getName() - Method in class net.xun.lib.common.api.item.armor.ArmorSet
Gets the base name of this armor set.
getName() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the base name of this tool set.
getName() - Method in class net.xun.lib.common.api.util.LazyReference
 
getNamespace() - Method in class net.xun.lib.common.api.registries.Register
Gets the namespace for registered objects.
getNameSuffix() - Method in enum class net.xun.lib.common.api.item.armor.ArmorType
 
getNameSuffix() - Method in enum class net.xun.lib.common.api.item.tools.ToolType
 
getPickaxe() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the pickaxe item from this tool set.
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.neoforge.internal.platform.NeoForgePlatformHelper
 
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.
getRegistryKey() - Method in class net.xun.lib.common.api.registries.Register
Gets the resource key of the target registry.
getShovel() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the shovel item from this tool set.
getSlot() - Method in enum class net.xun.lib.common.api.item.armor.ArmorType
 
getSlotOrder(Container, SlotRange) - Method in enum class net.xun.lib.common.api.inventory.InventoryCycleOrder
Generates slot access order based on container type and range constraints
getSlotRange() - Method in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
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
Generates a 3D sphere of BlockPos around a center point.
getSquare(BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Generates a 2D square of BlockPos around a center point at the same Y level.
getStart() - Method in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
 
getStart() - Method in class net.xun.lib.common.api.inventory.slot.SlotRange
 
getSupplier() - Method in class net.xun.lib.common.api.registries.RegistryHolder
Gets the underlying supplier for the held object.
getSword() - Method in class net.xun.lib.common.api.item.tools.ToolSet
Gets the sword item from this tool set.
getTicker(Level, BlockState, BlockEntityType<T>) - Method in interface net.xun.lib.common.api.block.entity.TickingEntityBlock
 
getType() - Method in enum class net.xun.lib.common.api.item.armor.ArmorType
 
getUnionAABB(AABB, AABB) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Computes the union AABB that fully contains both input AABBs.
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.
hasEffect(LivingEntity, MobEffectInstance) - Static method in class net.xun.lib.common.api.util.MobEffectUtils
Checks if the specified entity currently has the given effect.
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
Checks if the specified hand is empty.
hasEnchantmentInSlot(Player, int) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if the armor in the specific slot has any enchantments
hasFullArmorSet(Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if the player has armor in all armor slots
hasFullArmorSetOfMaterial(Player, Holder<ArmorMaterial>) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if the player is wearing armor in all armor slots and if all the armors matches the specific material
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.
hashCode() - Method in class net.xun.lib.common.api.registries.RegistryHolder
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(Player, InventoryPredicate, PlayerInventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Checks if a container's section contains at least one matching item.
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(Player, InventoryPredicate, int, PlayerInventorySection) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Checks if a container contains at least minCount items matching the predicate.
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.MobEffectUtils
Checks if the entity has a sufficient version of the given effect.
HELMET - Enum constant in enum class net.xun.lib.common.api.item.armor.ArmorType
 
hidden() - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
hideIcon() - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
HOE - Enum constant in enum class net.xun.lib.common.api.item.tools.ToolType
Hoe tool type
holder() - Method in class net.xun.lib.common.api.registries.RegistryHolder
Gets the underlying registry holder.
HOTBAR - Enum constant in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
 
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.
init() - Static method in class net.xun.lib.common.internal.XunLibCommon
 
insertAndDiscardOverflow(Container, ItemStack) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Adds items to a container and permanently discards any overflow
insertAndDiscardOverflow(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Adds items to a player's inventory and permanently discards any overflow
insertItem(Container, ItemStack) - Static method in class net.xun.lib.common.api.util.InventoryUtils
Attempts to add an item stack to a container.
insertItem(Player, ItemStack) - Static method in class net.xun.lib.common.api.util.PlayerInventoryUtils
Attempts to add an item stack to an inventory.
InvalidColorFormatException - Exception Class in net.xun.lib.common.api.exceptions
 
InvalidColorFormatException(String) - Constructor for exception class net.xun.lib.common.api.exceptions.InvalidColorFormatException
 
InvalidMatcherConfigurationException - Exception Class in net.xun.lib.common.api.exceptions
Exception thrown when invalid configuration combinations are detected in a FuzzyMatcher.
InvalidMatcherConfigurationException(String) - Constructor for exception class net.xun.lib.common.api.exceptions.InvalidMatcherConfigurationException
 
InventoryCycleOrder - Enum Class in net.xun.lib.common.api.inventory
 
InventoryPredicate - Interface in net.xun.lib.common.api.inventory.predicates
 
InventoryUtils - Class in net.xun.lib.common.api.util
Universal inventory utilities for all container types.
IPlatformHelper - Interface in net.xun.lib.common.internal.platform.services
 
is(Predicate<ResourceKey<R>>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
is(Holder<R>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
Deprecated.
is(ResourceKey<R>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
is(ResourceLocation) - Method in class net.xun.lib.common.api.registries.RegistryHolder
is(TagKey<R>) - Method in class net.xun.lib.common.api.registries.RegistryHolder
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
 
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.
isBound() - Method in class net.xun.lib.common.api.registries.RegistryHolder
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.neoforge.internal.platform.NeoForgePlatformHelper
 
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.neoforge.internal.platform.NeoForgePlatformHelper
 
isWithinCube(BlockPos, BlockPos, int) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Checks if a position is within a cubic area around a center.
isWithinSphere(BlockPos, BlockPos, double) - Static method in class net.xun.lib.common.api.util.BlockPosUtils
Checks if a position is within a spherical radius of another position.
Items(String) - Constructor for class net.xun.lib.common.api.registries.Register.Items
Constructs an item register.
Items(String) - Constructor for class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Items
 
iterator() - Method in class net.xun.lib.common.api.registries.Register
ITickableBlockEntity - Interface in net.xun.lib.common.api.block.entity
 

K

key - Variable in class net.xun.lib.common.api.registries.RegistryHolder
Resource key identifying the held object in the registry
kind() - Method in class net.xun.lib.common.api.registries.RegistryHolder

L

LazyReference<T> - Class in net.xun.lib.common.api.util
 
LazyReference(String, Supplier<T>) - Constructor for class net.xun.lib.common.api.util.LazyReference
 
LEGGINGS - Enum constant in enum class net.xun.lib.common.api.item.armor.ArmorType
 
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
 
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.PlayerInventorySection
 
matches(int) - Method in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
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
Checks if all armor slots contains an armor that matches the condition
matchesInSlot(Player, int, InventoryPredicate) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
Checks if the slot contains an armor that matches the condition
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
 
mayPlace(ItemStack) - Method in class net.xun.lib.common.api.inventory.slot.TakeOnlySlot
 
MixinMinecraft - Class in net.xun.lib.common.internal.mixin
 
MixinMinecraft() - Constructor for class net.xun.lib.common.internal.mixin.MixinMinecraft
 
MixinTitleScreen - Class in net.xun.lib.neoforge.internal.mixin
 
MixinTitleScreen() - Constructor for class net.xun.lib.neoforge.internal.mixin.MixinTitleScreen
 
MobEffectInstanceBuilder - Class in net.xun.lib.common.api.world.effect
 
MobEffectInstanceBuilder(Holder<MobEffect>) - Constructor for class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
MobEffectUtils - Class in net.xun.lib.common.api.util
Utility class for applying mob effects to entities with various strategies and conditions.
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
 
modLoc(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
Moves a position in a specific direction.

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.
needsRepair(int, Player) - Static method in class net.xun.lib.common.api.util.ArmorSlotsUtils
 
NeoForgePlatformHelper - Class in net.xun.lib.neoforge.internal.platform
 
NeoForgePlatformHelper() - Constructor for class net.xun.lib.neoforge.internal.platform.NeoForgePlatformHelper
 
NeoForgeRegister<T> - Class in net.xun.lib.neoforge.api.registries
 
NeoForgeRegister(ResourceKey<? extends Registry<T>>, String) - Constructor for class net.xun.lib.neoforge.api.registries.NeoForgeRegister
 
NeoForgeRegister.Blocks - Class in net.xun.lib.neoforge.api.registries
 
NeoForgeRegister.Items - Class in net.xun.lib.neoforge.api.registries
 
net.xun.lib.common.api - package net.xun.lib.common.api
 
net.xun.lib.common.api.block.entity - package net.xun.lib.common.api.block.entity
 
net.xun.lib.common.api.exceptions - package net.xun.lib.common.api.exceptions
 
net.xun.lib.common.api.inventory - package net.xun.lib.common.api.inventory
 
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 - package net.xun.lib.common.api.item
 
net.xun.lib.common.api.item.armor - package net.xun.lib.common.api.item.armor
 
net.xun.lib.common.api.item.fuzzy - package net.xun.lib.common.api.item.fuzzy
 
net.xun.lib.common.api.item.tools - package net.xun.lib.common.api.item.tools
 
net.xun.lib.common.api.misc.color - package net.xun.lib.common.api.misc.color
 
net.xun.lib.common.api.registries - package net.xun.lib.common.api.registries
 
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.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.neoforge.api.registries - package net.xun.lib.neoforge.api.registries
 
net.xun.lib.neoforge.internal - package net.xun.lib.neoforge.internal
 
net.xun.lib.neoforge.internal.mixin - package net.xun.lib.neoforge.internal.mixin
 
net.xun.lib.neoforge.internal.platform - package net.xun.lib.neoforge.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.
of(Holder<MobEffect>) - Static method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
OFFHAND - Enum constant in enum class net.xun.lib.common.api.inventory.PlayerInventorySection
 
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

PICKAXE - Enum constant in enum class net.xun.lib.common.api.item.tools.ToolType
Pickaxe tool type
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.InventoryCycleOrder
Hotbar (0-8) → Main inventory (9-35) → Offhand (40)
PlayerInventorySection - Enum Class in net.xun.lib.common.api.inventory
Represents inventory sections with dynamic slot ranges and validation.
PlayerInventoryUtils - Class in net.xun.lib.common.api.util
Specific utilities for managing player inventory, disable client-side by default
Preconfigured Matchers - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section
PREVENT_STACKING - Enum constant in enum class net.xun.lib.common.api.world.effect.EffectStackingStrategy
 

R

red() - Method in record class net.xun.lib.common.api.misc.color.RGBColor
Returns the value of the red record component.
register() - Method in class net.xun.lib.common.api.registries.Register
Performs final registration by binding all holders to the actual registry.
register() - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Blocks
 
register() - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Items
 
register() - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister
 
register(String, Supplier<B>) - Method in class net.xun.lib.common.api.registries.Register.Blocks
Registers a new block.
register(String, Supplier<B>) - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Blocks
 
register(String, Supplier<I>) - Method in class net.xun.lib.common.api.registries.Register.Items
Registers a new item.
register(String, Supplier<I>) - Method in class net.xun.lib.neoforge.api.registries.NeoForgeRegister.Items
 
register(String, Supplier<T>) - Method in class net.xun.lib.common.api.registries.Register
Registers a new object to this registry.
Register<R> - Class in net.xun.lib.common.api.registries
Abstract base class for registry management that simplifies registration of game objects.
Register(ResourceKey<? extends Registry<R>>, String) - Constructor for class net.xun.lib.common.api.registries.Register
Constructs a new register instance.
Register.Blocks - Class in net.xun.lib.common.api.registries
Specialized register implementation for blocks.
Register.Items - Class in net.xun.lib.common.api.registries
Specialized register implementation for items.
RegistryBlock<T> - Class in net.xun.lib.common.api.registries
A specialized registry holder implementation for blocks that implements ItemLike.
RegistryBlock(ResourceKey<Block>, Supplier<T>) - Constructor for class net.xun.lib.common.api.registries.RegistryBlock
Constructs a new block registry holder.
RegistryHolder<R,T> - Class in net.xun.lib.common.api.registries
A registry-backed holder implementation that wraps a registry entry and its supplier.
RegistryHolder(ResourceKey<R>, Supplier<T>) - Constructor for class net.xun.lib.common.api.registries.RegistryHolder
Creates a new RegistryHolder instance.
RegistryItem<T> - Class in net.xun.lib.common.api.registries
A specialized registry holder implementation for items that implements ItemLike.
RegistryItem(ResourceKey<Item>, Supplier<T>) - Constructor for class net.xun.lib.common.api.registries.RegistryItem
Constructs a new item registry holder.
REVERSE - Enum constant in enum class net.xun.lib.common.api.inventory.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.
serverTick(Level, BlockPos, BlockState) - Method in interface net.xun.lib.common.api.block.entity.ITickableBlockEntity
 
serverTick(Level, BlockPos, BlockState) - Method in interface net.xun.lib.common.internal.block.entity.ServerTickable
 
ServerTickable - Interface in net.xun.lib.common.internal.block.entity
 
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
Set your mod ID,
setModId(String) - Static method in class net.xun.lib.common.internal.misc.ModIDManager
 
SHOVEL - Enum constant in enum class net.xun.lib.common.api.item.tools.ToolType
Shovel tool type
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.
SWORD - Enum constant in enum class net.xun.lib.common.api.item.tools.ToolType
Sword tool type

T

tags() - Method in class net.xun.lib.common.api.registries.RegistryHolder
TakeOnlySlot - Class in net.xun.lib.common.api.inventory.slot
 
TakeOnlySlot(Container, int, int, int) - Constructor for class net.xun.lib.common.api.inventory.slot.TakeOnlySlot
 
TickingEntityBlock - Interface in net.xun.lib.common.api.block.entity
 
ToolConfigurator - Interface in net.xun.lib.common.api.item.tools
Factory interface for creating custom tool items.
ToolSet - Class in net.xun.lib.common.api.item.tools
Represents a complete set of tools (sword, axe, pickaxe, shovel, hoe) with configurable attributes.
ToolSet(String, Tier, EnumMap<ToolType, Float>, EnumMap<ToolType, Float>, Supplier<Item.Properties>, ToolConfigurator, AttributeHelper) - Constructor for class net.xun.lib.common.api.item.tools.ToolSet
 
ToolSet.Builder - Class in net.xun.lib.common.api.item.tools
Builder for constructing ToolSet instances with flexible configuration.
ToolType - Enum Class in net.xun.lib.common.api.item.tools
Enumerates tool types with their registration suffixes and factory methods.
toStack() - Method in class net.xun.lib.common.api.registries.RegistryBlock
Creates an ItemStack of this block with a count of 1.
toStack() - Method in class net.xun.lib.common.api.registries.RegistryItem
Creates an ItemStack of this item with a count of 1.
toStack(int) - Method in class net.xun.lib.common.api.registries.RegistryBlock
Creates an ItemStack of this block with the specified count.
toStack(int) - Method in class net.xun.lib.common.api.registries.RegistryItem
Creates an ItemStack of this item with the specified count.
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

unwrap() - Method in class net.xun.lib.common.api.registries.RegistryHolder
unwrapKey() - Method in class net.xun.lib.common.api.registries.RegistryHolder
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.
UpgradeSmithingTemplateItem - Class in net.xun.lib.common.api.item
Custom smithing template item for upgrade recipes.
UpgradeSmithingTemplateItem(String, List<ResourceLocation>, List<ResourceLocation>, FeatureFlag...) - Constructor for class net.xun.lib.common.api.item.UpgradeSmithingTemplateItem
Constructs a new UpgradeSmithingTemplateItem.
Usage Examples - Search tag in class net.xun.lib.common.api.item.fuzzy.FuzzyMatcher
Section
UtilityClassException - Exception Class in net.xun.lib.common.api.exceptions
 
UtilityClassException() - Constructor for exception class net.xun.lib.common.api.exceptions.UtilityClassException
 

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.
value() - Method in class net.xun.lib.common.api.registries.RegistryHolder
valueOf(String) - Static method in enum class net.xun.lib.common.api.inventory.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.PlayerInventorySection
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class net.xun.lib.common.api.item.armor.ArmorType
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.item.tools.ToolType
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.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.PlayerInventorySection
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.armor.ArmorType
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.item.tools.ToolType
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
withAmplifier(int) - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
withApplyStrategy(EffectStackingStrategy) - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
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
withConfiguration(ArmorConfigurator) - Method in class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Sets custom armor creation logic.
withConfiguration(ToolConfigurator) - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Sets custom tool creation logic.
withCountMode(FuzzyConfig.CountMode) - Method in class net.xun.lib.common.api.item.fuzzy.FuzzyConfig
Configures stack count comparison strategy
withDurabilityFactor(int) - Method in class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Sets durability multiplier for all armor pieces.
withDuration(int) - Method in class net.xun.lib.common.api.world.effect.MobEffectInstanceBuilder
 
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
withItemProperties(Item.Properties) - Method in class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Caution: Sets shared item properties for all armor pieces.
withItemProperties(Item.Properties) - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Caution: Sets shared item properties for all tools.
withItemPropertiesSupplier(Supplier<Item.Properties>) - Method in class net.xun.lib.common.api.item.armor.ArmorSet.Builder
Sets item properties using a supplier (called per-piece during construction).
withItemPropertiesSupplier(Supplier<Item.Properties>) - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Sets item properties using a supplier (called per-tool during construction).
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.
withToolStats(float[], float[]) - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Configures attack stats for all tools using arrays.
withToolStats(ToolType, float, float) - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Configures attack stats for a specific tool type.
withVanillaBalance() - Method in class net.xun.lib.common.api.item.tools.ToolSet.Builder
Applies vanilla Minecraft balance values to all tools.

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
 
XunLibNeoForge - Class in net.xun.lib.neoforge.internal
 
XunLibNeoForge(IEventBus) - Constructor for class net.xun.lib.neoforge.internal.XunLibNeoForge
 
A B C D E F G H I K L M N O P R S T U V W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form