Closed solonovamax closed 1 month ago
Problem:
method_5998
belongs to net/minecraft/entity/LivingEntity
/ class_1309
net/minecraft/class_1657.method_5998
which is not class_1309
class_1657
is PlayerEntity
PlayerEntity extends LivingEntity
/ class_1657 extends class_1309
without generating phantoms
Solution: Add a secondary resource to the workspace with code that proves class_1657 extends class_1309
Phantom generation is also disabled by default ATM btw
Longer term we'll probably want to bake-in some support for common minecraft-isms: https://github.com/Col-E/Recaf/issues/667
Problem:
method_5998
belongs tonet/minecraft/entity/LivingEntity
/class_1309
- The method reference in the code is
net/minecraft/class_1657.method_5998
which is notclass_1309
class_1657
isPlayerEntity
- There is no way for Recaf to know that
PlayerEntity extends LivingEntity
/class_1657 extends class_1309
without generating
- And those will only generate what can be inferred
- JPhantom does not find any code that strongly implies this, even though we may know it intuitively as people familiar with the game's logic
Solution: Add a secondary resource to the workspace with code that proves
class_1657 extends class_1309
Might want to slap this somewhere in the docs and/or present this to the user when first applying mappings.
Might want to slap this somewhere in the docs
Definitely planned. I've been focusing on the dev-docs first as they solidify. There's still a number of UI changes to make so I haven't really started hammering out user-docs.
Describe the bug
Some methods/fields do not seem to be properly remapped. (Using yarn mappings, unsure if this occurs for other mappings formats)
To Reproduce
Steps to reproduce the behavior:
com.eightsidedsquare.devtools.ModInit
LivingEntity.getStackInHand
(net.minecraft.class_1309.method_5998
) andServerCommonNetworkHandler.sendPacket
(net.minecraft.class_8609.method_14364
) & fieldActionResult.PASS
(net.minecraft.class_1269.field_5811
) are not remappedAccording to linkie, all of these fields & methods have existing mappings.
Additionally, they are definitely present in the mappings file:
Exception
N/A
Screenshots