Class UnitType<B extends io.netty.buffer.ByteBuf, V>
java.lang.Object
dev.latvian.mods.klib.registry.CustomRegistryType<B,V>
dev.latvian.mods.klib.registry.UnitType<B,V>
- All Implemented Interfaces:
CustomRegistryOwnTypeProvider<B,V>, Ref<V>, WithKey, WithValue<V>
public final class UnitType<B extends io.netty.buffer.ByteBuf, V>
extends CustomRegistryType<B,V>
implements Ref<V>, CustomRegistryOwnTypeProvider<B,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Ref
Ref.OfKey<V>, Ref.OfValue<V> -
Field Summary
Fields inherited from class CustomRegistryType
codec, key, streamCodec, versionFields inherited from interface WithKey
COMPARATOR -
Method Summary
Methods inherited from class CustomRegistryType
codec, key, optionalKey, streamCodec, type, versionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CustomRegistryOwnTypeProvider
typeMethods inherited from interface WithKey
key, optionalKey
-
Method Details
-
create
public static <B extends io.netty.buffer.ByteBuf, V> UnitType<B,V> create(String id, Function<CustomRegistryType<B, V>, V> instance) -
create
-
unit
-
isUnit
public boolean isUnit()- Overrides:
isUnitin classCustomRegistryType<B extends io.netty.buffer.ByteBuf, V>
-
optionalValue
- Specified by:
optionalValuein interfaceWithValue<B extends io.netty.buffer.ByteBuf>
-
value
-
toString
- Overrides:
toStringin classCustomRegistryType<B extends io.netty.buffer.ByteBuf, V>
-