Posted July 10, 20223 yr I have created a custom Minecart in 1.18 and now I want to transfer this to 1.19. I derived from the class "AbstractMinecartContainer" here, in 1.18 this worked. In 1.19 I now get the error message : This class must implement the inherited abstract method AbstractMinecart.getDropItem(), but cannot override it since it is not visible from GoldenHopperMinecartEntity. Either make the type abstract or make the inherited method visible. However, I can't see that anything has changed in the base classes (or I just don't see it). Can anyone help me here?
July 10, 20223 yr AbstractMinecart#getDropItem is for some reason package private you need to use a AT to make it protected (Note you can not make it public this will crash the vanilla implementations) Edit: this is the AT protected net.minecraft.world.entity.vehicle.AbstractMinecart m_213728_()Lnet/minecraft/world/item/Item; # getDropItem Edited July 10, 20223 yr by Luis_ST
July 10, 20223 yr Didn't exist in 1.18.2 it was hardcoded. See the 1.19 release notes for the change: https://feedback.minecraft.net/hc/en-us/articles/6731464524941-Minecraft-Java-Edition-1-19 Quote When broken each Minecart variant drops itself as item, instead of splitting into two items (such as Chest and Minecart) Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.