Class StaticComponentType<T>
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.component.StaticComponentType<T>
- All Implemented Interfaces:
ComponentType<T>
,MappedEntity
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.retrooper.packetevents.protocol.component.ComponentType
ComponentType.Decoder<T>, ComponentType.Encoder<T>
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorDescriptionStaticComponentType
(@Nullable TypesBuilderData data, @Nullable ComponentType.Decoder<T> decoder, @Nullable ComponentType.Encoder<T> encoder) StaticComponentType
(@Nullable TypesBuilderData data, @Nullable PacketWrapper.Reader<T> reader, @Nullable PacketWrapper.Writer<T> writer) StaticComponentType
(@Nullable TypesBuilderData data, @Nullable PacketWrapper.Reader<T> reader, @Nullable PacketWrapper.Writer<T> writer, @Nullable ComponentType.Decoder<T> decoder, @Nullable ComponentType.Encoder<T> encoder) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(NBT nbt, ClientVersion version) encode
(T value, ClientVersion version) <Z> ComponentType
<Z> read
(PacketWrapper<?> wrapper) void
write
(PacketWrapper<?> wrapper, T content) Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
-
Constructor Details
-
StaticComponentType
public StaticComponentType(@Nullable @Nullable TypesBuilderData data, @Nullable @Nullable PacketWrapper.Reader<T> reader, @Nullable @Nullable PacketWrapper.Writer<T> writer) -
StaticComponentType
public StaticComponentType(@Nullable @Nullable TypesBuilderData data, @Nullable @Nullable ComponentType.Decoder<T> decoder, @Nullable @Nullable ComponentType.Encoder<T> encoder) -
StaticComponentType
public StaticComponentType(@Nullable @Nullable TypesBuilderData data, @Nullable @Nullable PacketWrapper.Reader<T> reader, @Nullable @Nullable PacketWrapper.Writer<T> writer, @Nullable @Nullable ComponentType.Decoder<T> decoder, @Nullable @Nullable ComponentType.Encoder<T> encoder)
-
-
Method Details
-
read
- Specified by:
read
in interfaceComponentType<T>
-
write
- Specified by:
write
in interfaceComponentType<T>
-
decode
- Specified by:
decode
in interfaceComponentType<T>
-
encode
- Specified by:
encode
in interfaceComponentType<T>
-
legacyMap
- Specified by:
legacyMap
in interfaceComponentType<T>
-