Class StaticRecipeSerializer<T extends RecipeData>
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.recipe.StaticRecipeSerializer<T>
- All Implemented Interfaces:
MappedEntity
,RecipeSerializer<T>
public class StaticRecipeSerializer<T extends RecipeData>
extends AbstractMappedEntity
implements RecipeSerializer<T>
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
-
Constructor Summary
ConstructorsConstructorDescriptionStaticRecipeSerializer
(@Nullable TypesBuilderData data, PacketWrapper.Reader<T> reader, PacketWrapper.Writer<T> writer, @Nullable RecipeType legacyType) -
Method Summary
Modifier and TypeMethodDescriptionread
(PacketWrapper<?> wrapper) void
write
(PacketWrapper<?> wrapper, T data) 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
-
StaticRecipeSerializer
@Internal public StaticRecipeSerializer(@Nullable @Nullable TypesBuilderData data, PacketWrapper.Reader<T> reader, PacketWrapper.Writer<T> writer, @Nullable @Nullable RecipeType legacyType)
-
-
Method Details
-
getLegacyType
- Specified by:
getLegacyType
in interfaceRecipeSerializer<T extends RecipeData>
-
read
- Specified by:
read
in interfaceRecipeSerializer<T extends RecipeData>
-
write
- Specified by:
write
in interfaceRecipeSerializer<T extends RecipeData>
-