Tags
Creators
Details
All versions
1.21.1-3.0.0+fabric
Release
XunLib 3.0.02 weeks ago 12
Compatibility
Minecraft: Java Edition
1.21.1
Platform
Fabric
Supported environments
Client and server
Required content
Any compatible version
Changes
Xunlib v3.0.0
Added
- Added the
Areautility class for representing rectangular areas. It provides helpers for offsetting, insetting, expanding, and checking whether a point is contained within an area. - Added
TerrainAwareJigsawStructure. - Added
BlockEntityTypeFactory, which works likeBlockEntitySupplierbut allowsBlockEntityTypeinstances to be created in the common source set using XunLib's transformed access toBlockEntitySupplier. - Added a complete configuration system. See the wiki for documentation and usage details.
- Added the
ArmorSetandToolSetAPIs from the Armory API. See the Armory API changelog for additional details.
Changed
- Renamed
TickingEntityBlocktoITickingEntityBlock. - Moved
InventoryPredicatestoapi.inventoryand renamed it toItemStackPredicate. - Moved color utilities from
misc.colortoutil.color. - Renamed
IColorBasetoIColor. - Renamed
RGBColortoARGBColor. - Renamed utility classes ending in
UtilstoUtil. - Split
CommonUtilsintoResourceUtilandTranslationUtil. - Renamed
ArmorSlotsUtilstoEquipmentSlotUtil.- It now uses
net.minecraft.world.entity.EquipmentSlotrather than fixed slot indexes.
- It now uses
- Renamed
MobEffectUtilstoMobEffectUtil.- Renamed
applySingleEffecttoapplyEffect. - Renamed
applyEffectsWithStrategytoapplyEffectWithStrategy.
- Renamed
- Renamed
PlayerInventoryUtilstoPlayerInvUtil. - Moved the
TakeOnlySlotclass fromapi.inventory.slottoapi.block.entity.container.slot. - Moved the entire registration API from
api.registriestoapi.registration. - Refactored
EffectStackingStrategyinto an interface with a singleapply(LivingEntity, MobEffectInstance, MobEffectInstance)method. - Added the
EffectStackingStrategiesclass containing the built-in stacking strategies, allowing custom strategies to be implemented more easily.
Removed
- Removed
api.inventory.slot.SlotGetter. - Removed the
api.item.fuzzypackage and its contents, includingFuzzyMatcher, as the API was no longer considered useful. - Removed the HSL color implementation.
- Removed
ColorCombiner. - Removed
hasEffect(LivingEntity, MobEffectInstance)fromMobEffectUtil. - Removed
clearEffectandclearEffectsfromMobEffectUtil, as they were only wrappers around single-line operations. - Removed fixed-index slot handling from
ArmorSlotsUtilsin favor ofEquipmentSlot.
Optional dependencies
Any compatible version
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Y91RXtkK:L5xUo0XJ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Y91RXtkK:L5xUo0XJ"
}

