@@ -107,6 +107,7 @@ accessors {
107107 val ServerboundInteractPacketActionInteract = " net.minecraft.network.protocol.game.ServerboundInteractPacket\$ InteractionAction"
108108 val ServerboundKeepAlivePacket = " net.minecraft.network.protocol.game.ServerboundKeepAlivePacket"
109109 val ServerboundClientInformationPacket = " net.minecraft.network.protocol.game.ServerboundClientInformationPacket"
110+ val ServerboundUseItemOnPacket = " net.minecraft.network.protocol.game.ServerboundUseItemOnPacket"
110111 val ServerPlayer = " net.minecraft.server.level.ServerPlayer"
111112 val Player = " net.minecraft.world.entity.player.Player"
112113 val ServerLevel = " net.minecraft.server.level.ServerLevel"
@@ -271,6 +272,8 @@ accessors {
271272 val SignedMessageBodyPacked = " net.minecraft.network.chat.SignedMessageBody\$ Packed"
272273 val LastSeenMessagesPacked = " net.minecraft.network.chat.LastSeenMessages\$ Packed"
273274 val FilterMask = " net.minecraft.network.chat.FilterMask"
275+ val BlockHitResult = " net.minecraft.world.phys.BlockHitResult"
276+ val HitResultType = " net.minecraft.world.phys.HitResult\$ Type"
274277
275278 val CrossbowItem = " net.minecraft.world.item.CrossbowItem"
276279 val ArmorStand = " net.minecraft.world.entity.decoration.ArmorStand"
@@ -560,9 +563,10 @@ accessors {
560563 method(BlockPos , " getPos" )
561564 }
562565 mapClass(ServerboundPlayerActionPacket ) {
563- methodInferred(" getPos" , " 1.20.4" )
564- methodInferred(" getDirection" , " 1.20.4" )
565- methodInferred(" getAction" , " 1.20.4" )
566+ method(BlockPos , " getPos" )
567+ method(Direction , " getDirection" )
568+ method(ServerboundPlayerActionPacketAction , " getAction" )
569+ method(Int ::class , " getSequence" )
566570 }
567571 mapClass(ServerboundPlayerActionPacketAction ) {
568572 enumConstant(
@@ -603,6 +607,11 @@ accessors {
603607 fieldInferred(" hand" , " 1.20.4" )
604608 method(ServerboundInteractPacketActionType , " getType" )
605609 }
610+ mapClass(ServerboundUseItemOnPacket ) {
611+ method(InteractionHand , " getHand" )
612+ method(BlockHitResult , " getHitResult" )
613+ method(Int ::class , " getSequence" )
614+ }
606615 mapClass(ServerPlayer ) {
607616 constructor (MinecraftServer , ServerLevel , GameProfile )
608617 constructor (MinecraftServer , ServerLevel , GameProfile , ServerPlayerGameMode )
@@ -1846,6 +1855,19 @@ accessors {
18461855 field(FilterMask , " FULLY_FILTERED" )
18471856 field(FilterMask , " PASS_THROUGH" )
18481857 }
1858+ mapClass(BlockHitResult ) {
1859+ method(BlockPos , " getBlockPos" )
1860+ method(Direction , " getDirection" )
1861+ method(HitResultType , " getType" )
1862+ method(Boolean ::class , " isInside" )
1863+ }
1864+ mapClass(HitResultType ) {
1865+ enumConstant(
1866+ " MISS" ,
1867+ " BLOCK" ,
1868+ " ENTITY"
1869+ )
1870+ }
18491871
18501872 mapClass(CrossbowItem ) {
18511873 methodInferred(" isCharged" , " 1.16.5" , ItemStack )
0 commit comments