拍卖官v
方法 getEntityNbt(net.minecraft.entity.Entity)对于参数(org.bukkit.entity.Entity)不适用

应该怎样强转,求解

TheRam_
  1. net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) entity).getHandle();
复制代码



拍卖官v

然后变成了方法 getEntityNbt(net.minecraft.entity.Entity)对于参数(net.minecraft.server.v1_7_R4.Entity)不适用

TheRam_
拍卖官v 发表于 2020-4-20 17:24
然后变成了方法 getEntityNbt(net.minecraft.entity.Entity)对于参数(net.minecraft.server.v1_7_R4.E ...

1.7我没用过,试试getNBTTag()

第一页 上一页 下一页 最后一页