diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-03-02 03:09:05 +0900 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-03-02 03:09:05 +0900 |
| commit | 52a6bf840ed665a2086ed37bbe0f99907d160350 (patch) | |
| tree | 75687fc5f19a5d6880e396e0c316a70f88d6ea7f /api/src/main/java/me/shedaniel/rei/impl/Internals.java | |
| parent | e4cf4d7a272dbf5da9a8ca868d003f011f5b0fc9 (diff) | |
| download | RoughlyEnoughItems-52a6bf840ed665a2086ed37bbe0f99907d160350.tar.gz RoughlyEnoughItems-52a6bf840ed665a2086ed37bbe0f99907d160350.tar.bz2 RoughlyEnoughItems-52a6bf840ed665a2086ed37bbe0f99907d160350.zip | |
Update to 24w09a
Diffstat (limited to 'api/src/main/java/me/shedaniel/rei/impl/Internals.java')
| -rw-r--r-- | api/src/main/java/me/shedaniel/rei/impl/Internals.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/impl/Internals.java b/api/src/main/java/me/shedaniel/rei/impl/Internals.java index 112b030ce..9666c4b5f 100644 --- a/api/src/main/java/me/shedaniel/rei/impl/Internals.java +++ b/api/src/main/java/me/shedaniel/rei/impl/Internals.java @@ -35,7 +35,8 @@ import me.shedaniel.rei.api.common.plugins.REIPlugin; import me.shedaniel.rei.api.common.plugins.REIServerPlugin; import me.shedaniel.rei.api.common.transfer.info.MenuInfoRegistry; import me.shedaniel.rei.impl.common.InternalLogger; -import net.minecraft.nbt.Tag; +import net.minecraft.core.component.DataComponentMap; +import net.minecraft.core.component.DataComponentType; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Unit; import org.jetbrains.annotations.ApiStatus; @@ -105,7 +106,7 @@ public final class Internals { return serverPluginManager.get(); } - public static EntryComparator<Tag> getNbtHasher(String[] ignoredKeys) { + public static EntryComparator<DataComponentMap> getComponentHasher(DataComponentType<?>[] ignoredKeys) { return nbtHasherProvider.get().provide(ignoredKeys); } @@ -138,6 +139,6 @@ public final class Internals { } public interface NbtHasherProvider { - EntryComparator<Tag> provide(String... ignoredKeys); + EntryComparator<DataComponentMap> provide(DataComponentType<?>... ignoredKeys); } } |
