Add javadoc to RegistryContext

This commit is contained in:
Eclipse 2024-07-09 10:17:44 +00:00
parent 623b0571d3
commit db23661b59
No known key found for this signature in database
GPG key ID: 95E6998F82EC938A

View file

@ -31,6 +31,13 @@ import org.cloudburstmc.nbt.NbtMap;
import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.session.GeyserSession;
import org.geysermc.mcprotocollib.protocol.data.game.RegistryEntry; import org.geysermc.mcprotocollib.protocol.data.game.RegistryEntry;
/**
* Used to store context around a single registry entry when reading said entry's NBT.
*
* @param entry the registry entry being read.
* @param keyIdMap a map for each of the resource location's in the registry and their respective network IDs.
* @param session the Geyser session.
*/
public record RegistryContext(RegistryEntry entry, Map<Key, Integer> keyIdMap, GeyserSession session) { public record RegistryContext(RegistryEntry entry, Map<Key, Integer> keyIdMap, GeyserSession session) {
public int getNetworkId(Key registryKey) { public int getNetworkId(Key registryKey) {