From d04c22dddfefe5025ed6cdb8f51c5305b0b1da66 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Thu, 17 Jun 2021 10:47:34 -0700 Subject: [PATCH] missing ats and mappings --- build-data/mappings-patch.tiny | 4 ++++ build-data/paper.at | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/build-data/mappings-patch.tiny b/build-data/mappings-patch.tiny index 11c99f9c66..eb16ed426e 100644 --- a/build-data/mappings-patch.tiny +++ b/build-data/mappings-patch.tiny @@ -43,3 +43,7 @@ c net/minecraft/server/level/EntityPlayer net/minecraft/server/level/ServerPlaye # 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/IHopper net/minecraft/world/level/block/entity/Hopper m ()Lnet/minecraft/world/level/World; getWorld getLevel + +# Teleport method in ServerGamePacketListenerImpl +c net/minecraft/server/network/PlayerConnection net/minecraft/server/network/ServerGamePacketListenerImpl + m (DDDFFLorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)V a teleport diff --git a/build-data/paper.at b/build-data/paper.at index 8f7c25d530..709f3c01aa 100644 --- a/build-data/paper.at +++ b/build-data/paper.at @@ -57,6 +57,7 @@ public net.minecraft.world.item.ItemStack tag # Async chunk io public net.minecraft.server.level.ChunkMap structureManager +public net.minecraft.server.level.ChunkMap overworldDataStorage public net.minecraft.server.level.ChunkMap getUpdatingChunkIfPresent(J)Lnet/minecraft/server/level/ChunkHolder; public net.minecraft.server.level.ChunkMap getVisibleChunkIfPresent(J)Lnet/minecraft/server/level/ChunkHolder; public net.minecraft.server.level.ServerChunkCache mainThreadProcessor @@ -194,3 +195,10 @@ public net.minecraft.server.level.ChunkHolder pos # Incremental chunk saving public net.minecraft.world.level.entity.PersistentEntitySectionManager storeChunkSections(JLjava/util/function/Consumer;)Z + +# Mending XP API +public net.minecraft.world.entity.ExperienceOrb durabilityToXp(I)I +public net.minecraft.world.entity.ExperienceOrb xpToDurability(I)I + +# Implement an API for CanPlaceOn and CanDestroy NBT values +public net.minecraft.commands.arguments.blocks.BlockStateParser id