Interface DataComponent<T>

Type Parameters:
T - The value type of the component
All Superinterfaces:
Codec<T>, Decoder<T>, Encoder<T>, Holder<DataComponent<T>>, net.kyori.adventure.key.Keyed, RegistryKey<DataComponent<T>>, StaticProtocolObject<DataComponent<T>>

public sealed interface DataComponent<T> extends StaticProtocolObject<DataComponent<T>>, Codec<T>
A common type to represent all forms of component in the game. Each group of component types has its own declaration file (see DataComponent for example).
See Also: