Class DataComponent<V,T extends DataComponentType<V>>
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent<V,T>
- Direct Known Subclasses:
BooleanDataComponent,IntDataComponent,ObjectDataComponent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
-
-
Constructor Details
-
DataComponent
-
-
Method Details
-
getValue
May be null depending on type -
write
public void write(io.netty.buffer.ByteBuf out) Overridden for primitive classes. This write method still checks for these primitives in the event they are manually created usingObjectDataComponent. -
toString
-
equals
-
hashCode
public int hashCode() -
getType
-