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, WithRef<V>, WithValue<V>
public final class UnitType<B extends io.netty.buffer.ByteBuf, V>
extends CustomRegistryType<B,V>
implements Ref<V>, CustomRegistryOwnTypeProvider<B,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, versionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface WithKey
key, optionalKey
-
Method Details
-
create
-
create
-
type
-
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>
-