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 Ref
ERROR_NOT_UNITFields inherited from interface WithKey
COMPARATOR -
Method Summary
Methods inherited from class CustomRegistryType
codec, key, optionalKey, streamCodec, versionMethods 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>
-
hashCode
-
equals
-
unitKeyResult
- Specified by:
unitKeyResultin interfaceRef<B extends io.netty.buffer.ByteBuf>
-