2021-06-20 07:47:14 +00:00
|
|
|
# We would like for paperweight to generate 100% perfect reobf mappings (and deobf mappings for that matter).
|
|
|
|
# But unfortunately it's not quite there yet - and it may be some time before that happens. Generating perfect mappings
|
|
|
|
# from Spigot's mappings is extremely difficult due to Spigot's bad tooling and bad mappings. To add insult to injury
|
|
|
|
# we remap Spigot's _source code_ which is a lot more complex and error-prone than bytecode remapping. So with all that
|
|
|
|
# said, this file exists to help fill in the gap.
|
|
|
|
#
|
|
|
|
# We will continue to improve paperweight and will work on fixing these issues so they don't come up in the first place,
|
|
|
|
# but these mappings exist to prevent these issues from holding everything else in Paper up while we work through all
|
|
|
|
# of these issues. Due to the complex nature of mappings generation and the debugging difficulty involved it may take
|
|
|
|
# a significant amount of time for us to track down every possible issue, so this file will likely be around and in
|
|
|
|
# use - at least in some capacity - for a long time.
|
|
|
|
|
|
|
|
tiny 2 0 mojang+yarn spigot
|
2021-06-20 08:19:51 +00:00
|
|
|
|
2021-06-20 21:22:20 +00:00
|
|
|
# CraftBukkit changes type
|
2021-11-24 09:25:37 +00:00
|
|
|
c net/minecraft/server/level/ServerLevel net/minecraft/server/level/WorldServer
|
|
|
|
f Lnet/minecraft/world/level/storage/PrimaryLevelData; serverLevelData N
|
2021-06-20 21:22:20 +00:00
|
|
|
|
2021-11-24 09:25:37 +00:00
|
|
|
c net/minecraft/world/level/chunk/LevelChunk net/minecraft/world/level/chunk/Chunk
|
|
|
|
f Lnet/minecraft/server/level/ServerLevel; level q
|
2021-07-04 10:19:48 +00:00
|
|
|
|
2021-11-24 09:25:37 +00:00
|
|
|
# 1.18 todo: verify paper still changes this
|
2021-06-20 21:22:20 +00:00
|
|
|
# Paper changes type
|
2021-11-24 09:25:37 +00:00
|
|
|
c net/minecraft/core/MappedRegistry net/minecraft/core/RegistryMaterials
|
|
|
|
f Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap; toId bA
|
2021-11-24 05:44:21 +00:00
|
|
|
|
|
|
|
# We add the getLevel method back to Hopper since mojang removed it - we need the method for hopper optimization
|
|
|
|
# We add the method with this name to match the mojmap method of the same name in BlockEntity
|
|
|
|
# Since we add the method we need to add the mapping for it so reobf works as expected
|
|
|
|
c net/minecraft/world/level/block/entity/Hopper net/minecraft/world/level/block/entity/IHopper
|
2021-11-24 09:25:37 +00:00
|
|
|
m ()Lnet/minecraft/world/level/Level; getLevel W
|