Deprecate the ClassMapping and MethodMapping classes

They are a huge pain to maintain... I should have put a stronger word against this when it got added...
This commit is contained in:
Christian Koop 2023-04-19 21:51:42 +02:00
parent e21db58a67
commit eb76ba47ee
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
package com.songoda.core.compatibility;
/**
* @deprecated Usage is highly discouraged use NMSManager instead
*/
@Deprecated
public enum ClassMapping {
BIOME_BASE("world.level.biome", "BiomeBase"),
BIOME_STORAGE("world.level.chunk", "BiomeStorage"),

View File

@ -5,6 +5,10 @@ import org.bukkit.inventory.ItemStack;
import java.lang.reflect.Method;
/**
* @deprecated Usage is highly discouraged use NMSManager instead
*/
@Deprecated
public enum MethodMapping {
MC_ITEM_STACK__GET_TAG("getTag", "getTag", "s", "t", "u"),
MC_ITEM_STACK__SET_TAG("setTag", "setTag", "c", "c", "c", ClassMapping.NBT_TAG_COMPOUND.getClazz()),