public static class CuttingRecipe.Serializer<T extends CuttingRecipe> extends Object implements RecipeSerializer<T>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
CuttingRecipe.Serializer.RecipeFactory<T extends CuttingRecipe> |
Modifier and Type | Field and Description |
---|---|
(package private) CuttingRecipe.Serializer.RecipeFactory<T> |
recipeFactory |
ARMOR_DYE, BANNER_DUPLICATE, BLASTING, BOOK_CLONING, CAMPFIRE_COOKING, FIREWORK_ROCKET, FIREWORK_STAR, FIREWORK_STAR_FADE, MAP_CLONING, MAP_EXTENDING, REPAIR_ITEM, SHAPED, SHAPELESS, SHIELD_DECORATION, SHULKER_BOX, SMELTING, SMITHING, SMOKING, STONECUTTING, SUSPICIOUS_STEW, TIPPED_ARROW
Modifier | Constructor and Description |
---|---|
protected |
Serializer(CuttingRecipe.Serializer.RecipeFactory<T> recipeFactory) |
Modifier and Type | Method and Description |
---|---|
T |
read(Identifier identifier,
JsonObject jsonObject) |
T |
read(Identifier identifier,
PacketByteBuf packetByteBuf) |
void |
write(PacketByteBuf packetByteBuf,
T t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
register
final CuttingRecipe.Serializer.RecipeFactory<T extends CuttingRecipe> recipeFactory
protected Serializer(CuttingRecipe.Serializer.RecipeFactory<T> recipeFactory)
public T read(Identifier identifier, JsonObject jsonObject)
read
in interface RecipeSerializer<T extends CuttingRecipe>
public T read(Identifier identifier, PacketByteBuf packetByteBuf)
read
in interface RecipeSerializer<T extends CuttingRecipe>
public void write(PacketByteBuf packetByteBuf, T t)
write
in interface RecipeSerializer<T extends CuttingRecipe>