Files
purpur-inventory-helper/src/main/java/games/dmg/spigotinventoryhelper/AnvilFrameVersions.java
T
dmg de045fb458
CI / build (push) Successful in 1m59s
CI / build (pull_request) Successful in 2m27s
feat(anvil): combine items beyond enchantment limits
2026-10-11 23:51:17 -04:00

18 lines
431 B
Java

package games.dmg.spigotinventoryhelper;
/** Positive VarInt frame IDs outside the native 15-bit range; never wrap or recycle. */
final class AnvilFrameVersions {
private long next = 32768;
private boolean exhausted;
int next() {
if (next > Integer.MAX_VALUE) {
exhausted = true;
return -1;
}
return (int) next++;
}
boolean exhausted() { return exhausted; }
}