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:
@@ -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;
|
||||
|
||||
Submodule core/src/main/resources/languages updated: 4ce8ad58ea...daa2157428
Reference in New Issue
Block a user