Class CustomRegistryType<B extends io.netty.buffer.ByteBuf, V>

java.lang.Object
dev.latvian.mods.klib.registry.CustomRegistryType<B,V>
Direct Known Subclasses:
CustomRegistryType.Dynamic, CustomRegistryType.Unit

public abstract class CustomRegistryType<B extends io.netty.buffer.ByteBuf, V> extends Object
  • Field Details

    • codec

      protected com.mojang.serialization.MapCodec<V> codec
    • streamCodec

      protected net.minecraft.network.codec.StreamCodec<? super B extends io.netty.buffer.ByteBuf, V> streamCodec
    • version

      protected int version
  • Method Details

    • key

      public net.minecraft.resources.ResourceKey<V> key()
    • codec

      public com.mojang.serialization.MapCodec<V> codec()
    • streamCodec

      public net.minecraft.network.codec.StreamCodec<? super B, V> streamCodec()
    • id

      public net.minecraft.resources.Identifier id()
    • instance

      @Nullable public V instance()
    • instanceOrThrow

      public V instanceOrThrow()
    • version

      public int version()
    • toString

      public String toString()
      Overrides:
      toString in class Object