Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: More preprocessor mappings #2809

Merged
merged 14 commits into from
Nov 1, 2024
6 changes: 5 additions & 1 deletion src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ object TabListData {
}

private fun readTabList(): List<String>? {
val thePlayer = Minecraft.getMinecraft()?.thePlayer ?: return null
val thePlayer = Minecraft.getMinecraft().thePlayer ?: return null
//#if MC<1.16
val players = playerOrdering.sortedCopy(thePlayer.sendQueue.playerInfoMap)
//#else
//$$ val players = playerOrdering.sortedCopy(thePlayer.connection.onlinePlayers)
//#endif
val result = mutableListOf<String>()
tabListGuard = true
for (info in players) {
Expand Down
24 changes: 14 additions & 10 deletions versions/mapping-1.12.2-1.8.9.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

net.minecraft.client.renderer.entity.RenderLivingBase net.minecraft.client.renderer.entity.RendererLivingEntity

net.minecraft.client.renderer.BufferBuilder net.minecraft.client.renderer.WorldRenderer
net.minecraft.client.renderer.RenderItem net.minecraft.client.renderer.entity.RenderItem

net.minecraft.client.renderer.block.model.IBakedModel net.minecraft.client.resources.model.IBakedModel

net.minecraft.client.renderer.entity.RenderLivingBase net.minecraft.client.renderer.entity.RendererLivingEntity

net.minecraft.entity.player.EntityPlayer getHeldItemMainhand() getHeldItem()

Expand Down Expand Up @@ -47,7 +50,6 @@ net.minecraft.network.play.server.SPacketPlayerListHeaderFooter net.minecraft.ne
net.minecraft.network.play.server.SPacketPlayerListItem net.minecraft.network.play.server.S38PacketPlayerListItem
net.minecraft.network.play.server.SPacketSetSlot net.minecraft.network.play.server.S2FPacketSetSlot
net.minecraft.network.play.server.SPacketSoundEffect net.minecraft.network.play.server.S29PacketSoundEffect
net.minecraft.network.play.server.SPacketSoundEffect net.minecraft.network.play.server.S29PacketSoundEffect
net.minecraft.network.play.server.SPacketSpawnMob net.minecraft.network.play.server.S0FPacketSpawnMob
net.minecraft.network.play.server.SPacketSpawnObject net.minecraft.network.play.server.S0EPacketSpawnObject
net.minecraft.network.play.server.SPacketSpawnPlayer net.minecraft.network.play.server.S0CPacketSpawnPlayer
Expand All @@ -62,18 +64,20 @@ net.minecraft.util.math.AxisAlignedBB net.minecraft.util.AxisAlignedBB
net.minecraft.util.math.BlockPos net.minecraft.util.BlockPos
net.minecraft.util.math.MathHelper net.minecraft.util.MathHelper
net.minecraft.util.math.RayTraceResult net.minecraft.util.MovingObjectPosition
net.minecraft.util.math.RayTraceResult$Type net.minecraft.util.math.RayTraceResult$MovingObjectType
net.minecraft.util.math.Rotations net.minecraft.util.Rotations
net.minecraft.util.math.Vec3d net.minecraft.util.Vec3
net.minecraft.util.math.Vec3d net.minecraft.util.Vec3

net.minecraft.util.math.RayTraceResult$Type net.minecraft.util.math.RayTraceResult$MovingObjectType

net.minecraft.util.text.ITextComponent net.minecraft.util.IChatComponent
net.minecraft.util.text.Style net.minecraft.util.ChatStyle
net.minecraft.util.text.TextComponentString net.minecraft.util.ChatComponentText
net.minecraft.util.text.TextComponentTranslation net.minecraft.util.ChatComponentTranslation
net.minecraft.util.text.Style net.minecraft.util.ChatStyle
net.minecraft.util.text.Style getHoverEvent() getChatHoverEvent()
net.minecraft.util.text.Style getClickEvent() getChatClickEvent()
net.minecraft.util.text.TextFormatting net.minecraft.util.EnumChatFormatting
net.minecraft.util.text.ITextComponent net.minecraft.util.IChatComponent
net.minecraft.util.text.event.HoverEvent net.minecraft.event.HoverEvent

net.minecraft.util.text.Style getClickEvent() getChatClickEvent()
net.minecraft.util.text.Style getHoverEvent() getChatHoverEvent()

net.minecraft.util.text.event.ClickEvent net.minecraft.event.ClickEvent
net.minecraft.util.text.event.HoverEvent net.minecraft.event.HoverEvent

4 changes: 3 additions & 1 deletion versions/mapping-1.16.5-1.16.5-forge.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
net.fabricmc.api.Environment net.minecraftforge.api.distmarker.OnlyIn

net.fabricmc.api.EnvType net.minecraftforge.api.distmarker.Dist
net.fabricmc.api.Environment net.minecraftforge.api.distmarker.OnlyIn

Loading
Loading