1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-27 02:39:15 +00:00

Initial work on using Minecraft gametests to test component hashing

This commit is contained in:
Eclipse
2025-05-02 11:41:16 +00:00
parent 0977d0ce40
commit 3c8fcdff09
10 changed files with 336 additions and 5 deletions

View File

@@ -317,6 +317,10 @@ public class DataComponentHashers {
}
}
public static <V, T extends DataComponentType<V>> HashCode hash(GeyserSession session, DataComponent<V, T> component) {
return hash(session, component.getType(), component.getValue());
}
public static HashedStack hashStack(GeyserSession session, ItemStack stack) {
if (stack == null) {
return null;