Class GoatVariantUtil
java.lang.Object
kiwi.allantaylor.markedgoats.util.GoatVariantUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetInstrumentNameFromGoat(net.minecraft.world.entity.animal.goat.Goat goatEntity) static StringgetNameFromInstrument(net.minecraft.world.item.EitherHolder<net.minecraft.world.item.Instrument> instrumentEntry) Converts a goat horn instrument entry to a simple variety string.
-
Constructor Details
-
GoatVariantUtil
public GoatVariantUtil()
-
-
Method Details
-
getNameFromInstrument
public static String getNameFromInstrument(net.minecraft.world.item.EitherHolder<net.minecraft.world.item.Instrument> instrumentEntry) Converts a goat horn instrument entry to a simple variety string. Example: "minecraft:ponder_goat_horn" -> "ponder" -
getInstrumentNameFromGoat
public static String getInstrumentNameFromGoat(net.minecraft.world.entity.animal.goat.Goat goatEntity)
-