Skip to content

Cow setVariant NoSuchMethodeError #12937

@Avankziar

Description

@Avankziar

Expected behavior

Normally the interface Cow has the methode setVariant(Cow.Variant).

Observed/Actual behavior

If when the methode Cow.setVariant(Cow.Variant) is used, a NoSuchMethodeError is shown.
java.lang.NoSuchMethodError: 'void org.bukkit.entity.AbstractCow.setVariant(org.bukkit.entity.Cow$Variant)'

Was literally the following line of code: cow.setVariant(Cow.Variant.TEMPERATE);

Have tested this on paper-1.21.8-25 / paper-1.21.8-17.

On Version paper-1.21.8-7 no error was shown.

Steps/models to reproduce

  • Spawn Cow Entity.
  • entity instanceof Cow
  • Cow.setVariant(Any Cow.Variant)

Plugin and Datapack List

Bukkit Plugins:
AdvancedEconomyPlus, AdvancedStoreHouse, BungeeTeleportManager, InterfaceHub, LuckPerms, RootAdministration, SaLE, ShulkerBoxOpen, SimpleChatChannels, Vault, Vector3D, WorldEdit, WorldGuard, YourPet

Paper version

This server is running Paper version 1.21.8-25-main@846c64f (2025-08-04T13:12:55Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)
Previous version: 1.21.8-17-dbc367b (MC: 1.21.8)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions