public @Nullable Number getNumericTag(final LootContext context) {
25
CompoundTag value = context.getLevel().getServer().getCommandStorage().get(this.storage);
26
27
try {
28
List<Tag> selectedTags = this.path.get(value);
29
if (selectedTags.size() == 1 && selectedTags.getFirst() instanceof NumericTag result) {
30
return result.box();
31
}
32
} catch (CommandSyntaxException var6) {
33
}
34
35
return null;
36
}
37
}
38
Decompiled Minecraft 26.3 source of StoredNumberAccess (net/minecraft/world/level/storage/loot/providers/number/StoredNumberAccess.java) with Mojang official mappings, stored verbatim on the site.