Sorry that my English is not very good, but I will try my best to express myself.
I am making a mod depending on porting lib. The modules I am using are core, entity and attributes. And the version is 2.3.4, mc 1.20.1.
When I try to call player.getEntityReach(), it works well in the development environment, but when I put the built jar into the actual game, it prompted NoSuchMethod.
Then I try ((PlayerAttributesExtensions)player).getEntityReach(), it still reports
java.lang.IncompatibleClassChangeError: Class net.minecraft.class_746 does not implement the requested interface io.github.fabricators_of_create.porting_lib.attributes.extensions.PlayerAttributesExtensions
I am not sure if this is a problem with the porting lib itself or if my own configuration is incorrect.
Here is the related code -- https://github.com/Karashok-Leo/L2Hostility-Fabricated/blob/3aec2d02a192f52802c2092bfcf1665dc1565d02/src/main/java/net/karashokleo/l2hostility/client/MobTraitRenderer.java#L25
Could you help me fix this? Thanks!
Sorry that my English is not very good, but I will try my best to express myself. I am making a mod depending on porting lib. The modules I am using are core, entity and attributes. And the version is 2.3.4, mc 1.20.1. When I try to call
player.getEntityReach()
, it works well in the development environment, but when I put the built jar into the actual game, it promptedNoSuchMethod
. Then I try((PlayerAttributesExtensions)player).getEntityReach()
, it still reportsjava.lang.IncompatibleClassChangeError: Class net.minecraft.class_746 does not implement the requested interface io.github.fabricators_of_create.porting_lib.attributes.extensions.PlayerAttributesExtensions
I am not sure if this is a problem with the porting lib itself or if my own configuration is incorrect. Here is the related code -- https://github.com/Karashok-Leo/L2Hostility-Fabricated/blob/3aec2d02a192f52802c2092bfcf1665dc1565d02/src/main/java/net/karashokleo/l2hostility/client/MobTraitRenderer.java#L25 Could you help me fix this? Thanks!