Object VanillaBiCodecs

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> BiCodec<ByteBuf, ResourceKey<T>> resourceKey(ResourceKey<out Registry<T>> registryKey) 指定したregistryKeyからResourceKeyのBiCodecを返します。
      final static <T extends Any> BiCodec<ByteBuf, TagKey<T>> tagKey(ResourceKey<out Registry<T>> registryKey, Boolean withHash) 指定したregistryKeyからTagKeyのBiCodecを返します。
      final static <T extends Any> BiCodec<RegistryFriendlyByteBuf, Holder<T>> holder(ResourceKey<out Registry<T>> registryKey) 指定したregistryKeyからHolderのBiCodecを返します。
      final static <T extends Any> BiCodec<RegistryFriendlyByteBuf, HolderSet<T>> holderSet(ResourceKey<out Registry<T>> registryKey) 指定したregistryKeyからHolderSetのBiCodecを返します。
      final static <T extends Any> BiCodec<RegistryFriendlyByteBuf, HTHolderLike<T, T>> holderLike(ResourceKey<out Registry<T>> registryKey) 指定したregistryKeyからHTSimpleHolderLikeのBiCodecを返します。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • tagKey

         final static <T extends Any> BiCodec<ByteBuf, TagKey<T>> tagKey(ResourceKey<out Registry<T>> registryKey, Boolean withHash)

        指定したregistryKeyからTagKeyのBiCodecを返します。

        Parameters:
        withHash - 変換後の文字列の先頭に'#'をつけるかどうか
      • holder

         final static <T extends Any> BiCodec<RegistryFriendlyByteBuf, Holder<T>> holder(ResourceKey<out Registry<T>> registryKey)

        指定したregistryKeyからHolderのBiCodecを返します。

      • holderSet

         final static <T extends Any> BiCodec<RegistryFriendlyByteBuf, HolderSet<T>> holderSet(ResourceKey<out Registry<T>> registryKey)

        指定したregistryKeyからHolderSetのBiCodecを返します。