PaperMC/paperweight

BlockState to IBlockData

StanByes opened this issue · 2 comments

Hello, I tried to use the net.minecraft.world.level.block.state.BlockState in my plugin to get Internal ID of a block.
After use the reobfJar task, I've launched my plugin and I got this error :
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.world.level.block.state.BlockState org.bukkit.craftbukkit.v1_19_R3.block.data.CraftBlockData.getState()'
After a look in https://mappings.cephx.dev/1.19.4 page, I saw that the class should be rename to IBlockData but when I decompiled the class of my plugin, the reobfJar task has let BlockState name.
I don't know if is an error with paperweight or not so I put it here !
Thank's

Tasks

No tasks being tracked yet.

I forgot :

  • Paperweight version : 1.5.5
  • Dev bundle : io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT

That method remaps fine:
Screenshot 2023-07-12 at 5 19 22 PM
Screenshot 2023-07-12 at 5 18 40 PM

Make sure you're actually using the reobfJar.