use of com.skelril.nitro.registry.dynamic.QuantityBoundedItemStackConfig in project Skree by Skelril.
the class WildernessWorldWrapper method getPoolItemDrop.
private ItemStackSnapshot getPoolItemDrop(ItemStackSnapshot snapshot) {
Map<String, QuantityBoundedItemStackConfig> replacementMapping = config.getDropAmplificationConfig().getItemReplacementMapping();
ItemStackConfig replacementItem = replacementMapping.get(snapshot.getType().getId());
if (replacementItem != null) {
return ((ItemStack) (Object) replacementItem.toNSMStack()).createSnapshot();
}
return snapshot;
}
Aggregations