Remove setCarpet in Llama for 1.20.6+

This commit is contained in:
libraryaddict 2024-09-09 08:10:13 +12:00
parent e03135a1ba
commit 7455d6e002

View File

@ -3,6 +3,8 @@ package me.libraryaddict.disguise.disguisetypes.watchers;
import me.libraryaddict.disguise.disguisetypes.AnimalColor;
import me.libraryaddict.disguise.disguisetypes.Disguise;
import me.libraryaddict.disguise.disguisetypes.MetaIndex;
import me.libraryaddict.disguise.utilities.reflection.NmsVersion;
import me.libraryaddict.disguise.utilities.reflection.annotations.NmsRemovedIn;
import org.bukkit.DyeColor;
import org.bukkit.entity.Llama;
@ -28,6 +30,7 @@ public class LlamaWatcher extends ChestedHorseWatcher {
return AnimalColor.getColorByWool(getData(MetaIndex.LLAMA_CARPET)).getDyeColor();
}
@NmsRemovedIn(NmsVersion.v1_20_R4)
public void setCarpet(DyeColor dyeColor) {
sendData(MetaIndex.LLAMA_CARPET, dyeColor == null ? -1 : (int) dyeColor.getWoolData());
}