1.17.x EntityMinecartAbstract NMS not found

Discussion in 'Spigot Plugin Development' started by Jakl, Jul 1, 2021.

  1. Hello,

    I tested one of the plugins I maintain on 1.17 today and ran into this error:
    Code (Text):
    java.lang.ClassNotFoundException: net.minecraft.server.v1_17_R1.EntityMinecartAbstract
     
    The error is caused by the following line:
    Code (Text):
    Reflect.getNMSClass("EntityMinecartAbstract");
    I used BuildTools to see if they renamed the class but the file is there.
    I'm pretty new to NMS stuff so... This is pretty confusing to me

    Does anyone know what could potentially cause this? Or am I just... blind/a bit stoopid

    Thanks in advance
     
  2. There's no version in package names anymore. Moreover, this class now in net.minecraft.world.entitiy.vehicle
     
  3. Oh okay - That might help me!

    Thanks!