Skip to content

Commit

Permalink
Mark current recipe wrappers as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Oct 18, 2024
1 parent cfc0e5b commit 60e546b
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@

import com.github.retrooper.packetevents.protocol.item.ItemStack;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class Ingredient {

private final ItemStack[] options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
import com.github.retrooper.packetevents.protocol.recipe.data.RecipeData;
import com.github.retrooper.packetevents.resources.ResourceLocation;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class Recipe<T extends RecipeData> {

private final ResourceLocation key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
import com.github.retrooper.packetevents.protocol.mapper.MappedEntity;
import com.github.retrooper.packetevents.protocol.recipe.data.RecipeData;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public interface RecipeSerializer<T extends RecipeData> extends MappedEntity {

@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
import java.util.HashMap;
import java.util.Map;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class RecipeSerializers {

private static final Map<String, RecipeSerializer<?>> PATTERN_TYPE_MAP = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
import com.github.retrooper.packetevents.protocol.recipe.CookingCategory;
import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class CookedRecipeData implements RecipeData {

private final String group;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@

package com.github.retrooper.packetevents.protocol.recipe.data;

import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public interface RecipeData {
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
import com.github.retrooper.packetevents.protocol.recipe.CraftingCategory;
import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class ShapedRecipeData implements RecipeData {

private final String group;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
import com.github.retrooper.packetevents.protocol.recipe.CraftingCategory;
import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class ShapelessRecipeData implements RecipeData {

private final String group;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.recipe.CraftingCategory;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class SimpleRecipeData implements RecipeData {

private final CraftingCategory category;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
import com.github.retrooper.packetevents.protocol.item.ItemStack;
import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.UnknownNullability;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class SmithingRecipeData implements RecipeData {

private final @UnknownNullability Ingredient template;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@

import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class SmithingTrimRecipeData implements RecipeData {

private final Ingredient template;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
import com.github.retrooper.packetevents.protocol.item.ItemStack;
import com.github.retrooper.packetevents.protocol.recipe.Ingredient;
import com.github.retrooper.packetevents.wrapper.PacketWrapper;
import org.jetbrains.annotations.ApiStatus;

/**
* <strong>WARNING:</strong> No longer exists since 1.21.2, network recipe data was rewritten.
*/
@ApiStatus.Obsolete
public class StoneCuttingRecipeData implements RecipeData {

private final String group;
Expand Down

0 comments on commit 60e546b

Please sign in to comment.