Class CustomRegistryType<B extends io.netty.buffer.ByteBuf, V>
java.lang.Object
dev.latvian.mods.klib.registry.CustomRegistryType<B,V>
- All Implemented Interfaces:
CustomRegistryOwnTypeProvider<B,V>, WithKey
- Direct Known Subclasses:
DynamicType, UnitType
public abstract sealed class CustomRegistryType<B extends io.netty.buffer.ByteBuf, V>
extends Object
implements WithKey, CustomRegistryOwnTypeProvider<B,V>
permits UnitType<B,V>, DynamicType<B,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.mojang.serialization.MapCodec<V> protected final Stringprotected intFields inherited from interface WithKey
COMPARATOR -
Method Summary
-
Field Details
-
key
-
codec
-
streamCodec
-
version
protected int version
-
-
Method Details
-
type
- Specified by:
typein interfaceCustomRegistryOwnTypeProvider<B extends io.netty.buffer.ByteBuf, V>
-
key
-
optionalKey
- Specified by:
optionalKeyin interfaceWithKey
-
codec
-
streamCodec
-
unit
-
isUnit
public boolean isUnit() -
version
public int version() -
toString
-