Class ServerPlayNetworkHandler

java.lang.Object
net.minecraft.server.network.ServerPlayNetworkHandler
All Implemented Interfaces:
PacketListener, ServerPacketListener, ServerPlayPacketListener, TickablePacketListener, EntityTrackingListener

public class ServerPlayNetworkHandler extends Object implements EntityTrackingListener, TickablePacketListener, ServerPlayPacketListener
Mappings:
Namespace Name
official aiy
intermediary net/minecraft/class_3244
named net/minecraft/server/network/ServerPlayNetworkHandler
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Laiy;c:Lorg/slf4j/Logger;
      intermediary field_14121 Lnet/minecraft/class_3244;field_14121:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/network/ServerPlayNetworkHandler;LOGGER:Lorg/slf4j/Logger;
    • KEEP_ALIVE_INTERVAL

      private static final int KEEP_ALIVE_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Laiy;d:I
      intermediary field_29778 Lnet/minecraft/class_3244;field_29778:I
      named KEEP_ALIVE_INTERVAL Lnet/minecraft/server/network/ServerPlayNetworkHandler;KEEP_ALIVE_INTERVAL:I
    • MAX_BREAK_SQUARED_DISTANCE

      public static final double MAX_BREAK_SQUARED_DISTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a:D
      intermediary field_37280 Lnet/minecraft/class_3244;field_37280:D
      named MAX_BREAK_SQUARED_DISTANCE Lnet/minecraft/server/network/ServerPlayNetworkHandler;MAX_BREAK_SQUARED_DISTANCE:D
    • DEFAULT_SEQUENCE

      private static final int DEFAULT_SEQUENCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Laiy;e:I
      intermediary field_37281 Lnet/minecraft/class_3244;field_37281:I
      named DEFAULT_SEQUENCE Lnet/minecraft/server/network/ServerPlayNetworkHandler;DEFAULT_SEQUENCE:I
    • MAX_PENDING_ACKNOWLEDGMENTS

      private static final int MAX_PENDING_ACKNOWLEDGMENTS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Laiy;f:I
      intermediary field_39989 Lnet/minecraft/class_3244;field_39989:I
      named MAX_PENDING_ACKNOWLEDGMENTS Lnet/minecraft/server/network/ServerPlayNetworkHandler;MAX_PENDING_ACKNOWLEDGMENTS:I
    • CHAT_VALIDATION_FAILED_TEXT

      private static final Text CHAT_VALIDATION_FAILED_TEXT
      Mappings:
      Namespace Name Mixin selector
      official g Laiy;g:Lsw;
      intermediary field_39990 Lnet/minecraft/class_3244;field_39990:Lnet/minecraft/class_2561;
      named CHAT_VALIDATION_FAILED_TEXT Lnet/minecraft/server/network/ServerPlayNetworkHandler;CHAT_VALIDATION_FAILED_TEXT:Lnet/minecraft/text/Text;
    • connection

      private final ClientConnection connection
      Mappings:
      Namespace Name Mixin selector
      official h Laiy;h:Lsd;
      intermediary field_14127 Lnet/minecraft/class_3244;field_14127:Lnet/minecraft/class_2535;
      named connection Lnet/minecraft/server/network/ServerPlayNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
    • server

      private final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      official i Laiy;i:Lnet/minecraft/server/MinecraftServer;
      intermediary field_14148 Lnet/minecraft/class_3244;field_14148:Lnet/minecraft/server/MinecraftServer;
      named server Lnet/minecraft/server/network/ServerPlayNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
    • player

      public ServerPlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b:Laig;
      intermediary field_14140 Lnet/minecraft/class_3244;field_14140:Lnet/minecraft/class_3222;
      named player Lnet/minecraft/server/network/ServerPlayNetworkHandler;player:Lnet/minecraft/server/network/ServerPlayerEntity;
    • ticks

      private int ticks
      Mappings:
      Namespace Name Mixin selector
      official j Laiy;j:I
      intermediary field_14118 Lnet/minecraft/class_3244;field_14118:I
      named ticks Lnet/minecraft/server/network/ServerPlayNetworkHandler;ticks:I
    • sequence

      private int sequence
      Mappings:
      Namespace Name Mixin selector
      official k Laiy;k:I
      intermediary field_37282 Lnet/minecraft/class_3244;field_37282:I
      named sequence Lnet/minecraft/server/network/ServerPlayNetworkHandler;sequence:I
    • lastKeepAliveTime

      private long lastKeepAliveTime
      Mappings:
      Namespace Name Mixin selector
      official l Laiy;l:J
      intermediary field_14136 Lnet/minecraft/class_3244;field_14136:J
      named lastKeepAliveTime Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastKeepAliveTime:J
    • waitingForKeepAlive

      private boolean waitingForKeepAlive
      Mappings:
      Namespace Name Mixin selector
      official m Laiy;m:Z
      intermediary field_14125 Lnet/minecraft/class_3244;field_14125:Z
      named waitingForKeepAlive Lnet/minecraft/server/network/ServerPlayNetworkHandler;waitingForKeepAlive:Z
    • keepAliveId

      private long keepAliveId
      Mappings:
      Namespace Name Mixin selector
      official n Laiy;n:J
      intermediary field_14134 Lnet/minecraft/class_3244;field_14134:J
      named keepAliveId Lnet/minecraft/server/network/ServerPlayNetworkHandler;keepAliveId:J
    • messageCooldown

      private int messageCooldown
      Mappings:
      Namespace Name Mixin selector
      official o Laiy;o:I
      intermediary field_14116 Lnet/minecraft/class_3244;field_14116:I
      named messageCooldown Lnet/minecraft/server/network/ServerPlayNetworkHandler;messageCooldown:I
    • creativeItemDropThreshold

      private int creativeItemDropThreshold
      Mappings:
      Namespace Name Mixin selector
      official p Laiy;p:I
      intermediary field_14133 Lnet/minecraft/class_3244;field_14133:I
      named creativeItemDropThreshold Lnet/minecraft/server/network/ServerPlayNetworkHandler;creativeItemDropThreshold:I
    • lastTickX

      private double lastTickX
      Mappings:
      Namespace Name Mixin selector
      official q Laiy;q:D
      intermediary field_14130 Lnet/minecraft/class_3244;field_14130:D
      named lastTickX Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickX:D
    • lastTickY

      private double lastTickY
      Mappings:
      Namespace Name Mixin selector
      official r Laiy;r:D
      intermediary field_14146 Lnet/minecraft/class_3244;field_14146:D
      named lastTickY Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickY:D
    • lastTickZ

      private double lastTickZ
      Mappings:
      Namespace Name Mixin selector
      official s Laiy;s:D
      intermediary field_14128 Lnet/minecraft/class_3244;field_14128:D
      named lastTickZ Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickZ:D
    • updatedX

      private double updatedX
      Mappings:
      Namespace Name Mixin selector
      official t Laiy;t:D
      intermediary field_14145 Lnet/minecraft/class_3244;field_14145:D
      named updatedX Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedX:D
    • updatedY

      private double updatedY
      Mappings:
      Namespace Name Mixin selector
      official u Laiy;u:D
      intermediary field_14126 Lnet/minecraft/class_3244;field_14126:D
      named updatedY Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedY:D
    • updatedZ

      private double updatedZ
      Mappings:
      Namespace Name Mixin selector
      official v Laiy;v:D
      intermediary field_14144 Lnet/minecraft/class_3244;field_14144:D
      named updatedZ Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedZ:D
    • topmostRiddenEntity

      @Nullable private @Nullable Entity topmostRiddenEntity
      Mappings:
      Namespace Name Mixin selector
      official w Laiy;w:Lbfj;
      intermediary field_14147 Lnet/minecraft/class_3244;field_14147:Lnet/minecraft/class_1297;
      named topmostRiddenEntity Lnet/minecraft/server/network/ServerPlayNetworkHandler;topmostRiddenEntity:Lnet/minecraft/entity/Entity;
    • lastTickRiddenX

      private double lastTickRiddenX
      Mappings:
      Namespace Name Mixin selector
      official x Laiy;x:D
      intermediary field_14143 Lnet/minecraft/class_3244;field_14143:D
      named lastTickRiddenX Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickRiddenX:D
    • lastTickRiddenY

      private double lastTickRiddenY
      Mappings:
      Namespace Name Mixin selector
      official y Laiy;y:D
      intermediary field_14124 Lnet/minecraft/class_3244;field_14124:D
      named lastTickRiddenY Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickRiddenY:D
    • lastTickRiddenZ

      private double lastTickRiddenZ
      Mappings:
      Namespace Name Mixin selector
      official z Laiy;z:D
      intermediary field_14142 Lnet/minecraft/class_3244;field_14142:D
      named lastTickRiddenZ Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickRiddenZ:D
    • updatedRiddenX

      private double updatedRiddenX
      Mappings:
      Namespace Name Mixin selector
      official A Laiy;A:D
      intermediary field_14122 Lnet/minecraft/class_3244;field_14122:D
      named updatedRiddenX Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedRiddenX:D
    • updatedRiddenY

      private double updatedRiddenY
      Mappings:
      Namespace Name Mixin selector
      official B Laiy;B:D
      intermediary field_14141 Lnet/minecraft/class_3244;field_14141:D
      named updatedRiddenY Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedRiddenY:D
    • updatedRiddenZ

      private double updatedRiddenZ
      Mappings:
      Namespace Name Mixin selector
      official C Laiy;C:D
      intermediary field_14120 Lnet/minecraft/class_3244;field_14120:D
      named updatedRiddenZ Lnet/minecraft/server/network/ServerPlayNetworkHandler;updatedRiddenZ:D
    • requestedTeleportPos

      @Nullable private @Nullable Vec3d requestedTeleportPos
      Mappings:
      Namespace Name Mixin selector
      official D Laiy;D:Leei;
      intermediary field_14119 Lnet/minecraft/class_3244;field_14119:Lnet/minecraft/class_243;
      named requestedTeleportPos Lnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPos:Lnet/minecraft/util/math/Vec3d;
    • requestedTeleportId

      private int requestedTeleportId
      Mappings:
      Namespace Name Mixin selector
      official E Laiy;E:I
      intermediary field_14123 Lnet/minecraft/class_3244;field_14123:I
      named requestedTeleportId Lnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportId:I
    • teleportRequestTick

      private int teleportRequestTick
      Mappings:
      Namespace Name Mixin selector
      official F Laiy;F:I
      intermediary field_14139 Lnet/minecraft/class_3244;field_14139:I
      named teleportRequestTick Lnet/minecraft/server/network/ServerPlayNetworkHandler;teleportRequestTick:I
    • floating

      private boolean floating
      Mappings:
      Namespace Name Mixin selector
      official G Laiy;G:Z
      intermediary field_14131 Lnet/minecraft/class_3244;field_14131:Z
      named floating Lnet/minecraft/server/network/ServerPlayNetworkHandler;floating:Z
    • floatingTicks

      private int floatingTicks
      Mappings:
      Namespace Name Mixin selector
      official H Laiy;H:I
      intermediary field_14138 Lnet/minecraft/class_3244;field_14138:I
      named floatingTicks Lnet/minecraft/server/network/ServerPlayNetworkHandler;floatingTicks:I
    • vehicleFloating

      private boolean vehicleFloating
      Mappings:
      Namespace Name Mixin selector
      official I Laiy;I:Z
      intermediary field_14129 Lnet/minecraft/class_3244;field_14129:Z
      named vehicleFloating Lnet/minecraft/server/network/ServerPlayNetworkHandler;vehicleFloating:Z
    • vehicleFloatingTicks

      private int vehicleFloatingTicks
      Mappings:
      Namespace Name Mixin selector
      official J Laiy;J:I
      intermediary field_14137 Lnet/minecraft/class_3244;field_14137:I
      named vehicleFloatingTicks Lnet/minecraft/server/network/ServerPlayNetworkHandler;vehicleFloatingTicks:I
    • movePacketsCount

      private int movePacketsCount
      Mappings:
      Namespace Name Mixin selector
      official K Laiy;K:I
      intermediary field_14117 Lnet/minecraft/class_3244;field_14117:I
      named movePacketsCount Lnet/minecraft/server/network/ServerPlayNetworkHandler;movePacketsCount:I
    • lastTickMovePacketsCount

      private int lastTickMovePacketsCount
      Mappings:
      Namespace Name Mixin selector
      official L Laiy;L:I
      intermediary field_14135 Lnet/minecraft/class_3244;field_14135:I
      named lastTickMovePacketsCount Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickMovePacketsCount:I
    • lastMessageTimestamp

      private final AtomicReference<Instant> lastMessageTimestamp
      Mappings:
      Namespace Name Mixin selector
      official M Laiy;M:Ljava/util/concurrent/atomic/AtomicReference;
      intermediary field_39394 Lnet/minecraft/class_3244;field_39394:Ljava/util/concurrent/atomic/AtomicReference;
      named lastMessageTimestamp Lnet/minecraft/server/network/ServerPlayNetworkHandler;lastMessageTimestamp:Ljava/util/concurrent/atomic/AtomicReference;
    • session

      Mappings:
      Namespace Name Mixin selector
      official N Laiy;N:Ltm;
      intermediary field_40720 Lnet/minecraft/class_3244;field_40720:Lnet/minecraft/class_7822;
      named session Lnet/minecraft/server/network/ServerPlayNetworkHandler;session:Lnet/minecraft/network/encryption/PublicPlayerSession;
    • messageUnpacker

      private MessageChain.Unpacker messageUnpacker
      Mappings:
      Namespace Name Mixin selector
      official O Laiy;O:Ltp$b;
      intermediary field_39805 Lnet/minecraft/class_3244;field_39805:Lnet/minecraft/class_7610$class_7611;
      named messageUnpacker Lnet/minecraft/server/network/ServerPlayNetworkHandler;messageUnpacker:Lnet/minecraft/network/message/MessageChain$Unpacker;
    • acknowledgmentValidator

      private final AcknowledgmentValidator acknowledgmentValidator
      Mappings:
      Namespace Name Mixin selector
      official P Laiy;P:Lte;
      intermediary field_39825 Lnet/minecraft/class_3244;field_39825:Lnet/minecraft/class_7638;
      named acknowledgmentValidator Lnet/minecraft/server/network/ServerPlayNetworkHandler;acknowledgmentValidator:Lnet/minecraft/network/message/AcknowledgmentValidator;
    • signatureStorage

      private final MessageSignatureStorage signatureStorage
      Mappings:
      Namespace Name Mixin selector
      official Q Laiy;Q:Lti;
      intermediary field_39987 Lnet/minecraft/class_3244;field_39987:Lnet/minecraft/class_7561;
      named signatureStorage Lnet/minecraft/server/network/ServerPlayNetworkHandler;signatureStorage:Lnet/minecraft/network/message/MessageSignatureStorage;
    • messageChainTaskQueue

      private final MessageChainTaskQueue messageChainTaskQueue
      Mappings:
      Namespace Name Mixin selector
      official R Laiy;R:Laop;
      intermediary field_39826 Lnet/minecraft/class_3244;field_39826:Lnet/minecraft/class_7619;
      named messageChainTaskQueue Lnet/minecraft/server/network/ServerPlayNetworkHandler;messageChainTaskQueue:Lnet/minecraft/network/message/MessageChainTaskQueue;
  • Constructor Details

    • ServerPlayNetworkHandler

      public ServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laiy;<init>(Lnet/minecraft/server/MinecraftServer;Lsd;Laig;)V
      intermediary <init> Lnet/minecraft/class_3244;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_3222;)V
      named <init> Lnet/minecraft/server/network/ServerPlayNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;)V
  • Method Details

    • tick

      public void tick()
      Specified by:
      tick in interface TickablePacketListener
      Mappings:
      Namespace Name Mixin selector
      official c Lso;c()V
      intermediary method_18784 Lnet/minecraft/class_7633;method_18784()V
      named tick Lnet/minecraft/network/listener/TickablePacketListener;tick()V
    • syncWithPlayerPosition

      public void syncWithPlayerPosition()
      Mappings:
      Namespace Name Mixin selector
      official d Laiy;d()V
      intermediary method_14372 Lnet/minecraft/class_3244;method_14372()V
      named syncWithPlayerPosition Lnet/minecraft/server/network/ServerPlayNetworkHandler;syncWithPlayerPosition()V
    • isConnectionOpen

      public boolean isConnectionOpen()
      Specified by:
      isConnectionOpen in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lsk;a()Z
      intermediary method_48106 Lnet/minecraft/class_2547;method_48106()Z
      named isConnectionOpen Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
    • isHost

      private boolean isHost()
      Mappings:
      Namespace Name Mixin selector
      official g Laiy;g()Z
      intermediary method_19507 Lnet/minecraft/class_3244;method_19507()Z
      named isHost Lnet/minecraft/server/network/ServerPlayNetworkHandler;isHost()Z
    • disconnect

      public void disconnect(Text reason)
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b(Lsw;)V
      intermediary method_14367 Lnet/minecraft/class_3244;method_14367(Lnet/minecraft/class_2561;)V
      named disconnect Lnet/minecraft/server/network/ServerPlayNetworkHandler;disconnect(Lnet/minecraft/text/Text;)V
    • filterText

      private <T, R> CompletableFuture<R> filterText(T text, BiFunction<TextStream,T,CompletableFuture<R>> filterer)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_31275 Lnet/minecraft/class_3244;method_31275(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;
      named filterText Lnet/minecraft/server/network/ServerPlayNetworkHandler;filterText(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;
    • filterText

      private CompletableFuture<FilteredMessage> filterText(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_31277 Lnet/minecraft/class_3244;method_31277(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
      named filterText Lnet/minecraft/server/network/ServerPlayNetworkHandler;filterText(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
    • filterTexts

      private CompletableFuture<List<FilteredMessage>> filterTexts(List<String> texts)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_31279 Lnet/minecraft/class_3244;method_31279(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
      named filterTexts Lnet/minecraft/server/network/ServerPlayNetworkHandler;filterTexts(Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
    • onPlayerInput

      public void onPlayerInput(PlayerInputC2SPacket packet)
      Specified by:
      onPlayerInput in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laaf;)V
      intermediary method_12067 Lnet/minecraft/class_2792;method_12067(Lnet/minecraft/class_2851;)V
      named onPlayerInput Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInput(Lnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;)V
    • isMovementInvalid

      private static boolean isMovementInvalid(double x, double y, double z, float yaw, float pitch)
      Returns whether this movement is invalid.
      Returns:
      whether this movement is invalid
      Implementation Note:
      This method is used to determine whether players sending player and vehicle movement packets to the server should be kicked.
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b(DDDFF)Z
      intermediary method_14371 Lnet/minecraft/class_3244;method_14371(DDDFF)Z
      named isMovementInvalid Lnet/minecraft/server/network/ServerPlayNetworkHandler;isMovementInvalid(DDDFF)Z
    • clampHorizontal

      private static double clampHorizontal(double d)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(D)D
      intermediary method_34882 Lnet/minecraft/class_3244;method_34882(D)D
      named clampHorizontal Lnet/minecraft/server/network/ServerPlayNetworkHandler;clampHorizontal(D)D
    • clampVertical

      private static double clampVertical(double d)
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b(D)D
      intermediary method_34883 Lnet/minecraft/class_3244;method_34883(D)D
      named clampVertical Lnet/minecraft/server/network/ServerPlayNetworkHandler;clampVertical(D)D
    • onVehicleMove

      public void onVehicleMove(VehicleMoveC2SPacket packet)
      Specified by:
      onVehicleMove in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzy;)V
      intermediary method_12078 Lnet/minecraft/class_2792;method_12078(Lnet/minecraft/class_2833;)V
      named onVehicleMove Lnet/minecraft/network/listener/ServerPlayPacketListener;onVehicleMove(Lnet/minecraft/network/packet/c2s/play/VehicleMoveC2SPacket;)V
    • isEntityOnAir

      private boolean isEntityOnAir(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lbfj;)Z
      intermediary method_29780 Lnet/minecraft/class_3244;method_29780(Lnet/minecraft/class_1297;)Z
      named isEntityOnAir Lnet/minecraft/server/network/ServerPlayNetworkHandler;isEntityOnAir(Lnet/minecraft/entity/Entity;)Z
    • onTeleportConfirm

      public void onTeleportConfirm(TeleportConfirmC2SPacket packet)
      Specified by:
      onTeleportConfirm in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzd;)V
      intermediary method_12050 Lnet/minecraft/class_2792;method_12050(Lnet/minecraft/class_2793;)V
      named onTeleportConfirm Lnet/minecraft/network/listener/ServerPlayPacketListener;onTeleportConfirm(Lnet/minecraft/network/packet/c2s/play/TeleportConfirmC2SPacket;)V
    • onRecipeBookData

      public void onRecipeBookData(RecipeBookDataC2SPacket packet)
      Specified by:
      onRecipeBookData in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laai;)V
      intermediary method_12047 Lnet/minecraft/class_2792;method_12047(Lnet/minecraft/class_2853;)V
      named onRecipeBookData Lnet/minecraft/network/listener/ServerPlayPacketListener;onRecipeBookData(Lnet/minecraft/network/packet/c2s/play/RecipeBookDataC2SPacket;)V
    • onRecipeCategoryOptions

      public void onRecipeCategoryOptions(RecipeCategoryOptionsC2SPacket packet)
      Specified by:
      onRecipeCategoryOptions in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laah;)V
      intermediary method_30303 Lnet/minecraft/class_2792;method_30303(Lnet/minecraft/class_5427;)V
      named onRecipeCategoryOptions Lnet/minecraft/network/listener/ServerPlayPacketListener;onRecipeCategoryOptions(Lnet/minecraft/network/packet/c2s/play/RecipeCategoryOptionsC2SPacket;)V
    • onAdvancementTab

      public void onAdvancementTab(AdvancementTabC2SPacket packet)
      Specified by:
      onAdvancementTab in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laal;)V
      intermediary method_12058 Lnet/minecraft/class_2792;method_12058(Lnet/minecraft/class_2859;)V
      named onAdvancementTab Lnet/minecraft/network/listener/ServerPlayPacketListener;onAdvancementTab(Lnet/minecraft/network/packet/c2s/play/AdvancementTabC2SPacket;)V
    • onRequestCommandCompletions

      public void onRequestCommandCompletions(RequestCommandCompletionsC2SPacket packet)
      Specified by:
      onRequestCommandCompletions in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzm;)V
      intermediary method_12059 Lnet/minecraft/class_2792;method_12059(Lnet/minecraft/class_2805;)V
      named onRequestCommandCompletions Lnet/minecraft/network/listener/ServerPlayPacketListener;onRequestCommandCompletions(Lnet/minecraft/network/packet/c2s/play/RequestCommandCompletionsC2SPacket;)V
    • onUpdateCommandBlock

      public void onUpdateCommandBlock(UpdateCommandBlockC2SPacket packet)
      Specified by:
      onUpdateCommandBlock in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laap;)V
      intermediary method_12077 Lnet/minecraft/class_2792;method_12077(Lnet/minecraft/class_2870;)V
      named onUpdateCommandBlock Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateCommandBlock(Lnet/minecraft/network/packet/c2s/play/UpdateCommandBlockC2SPacket;)V
    • onUpdateCommandBlockMinecart

      public void onUpdateCommandBlockMinecart(UpdateCommandBlockMinecartC2SPacket packet)
      Specified by:
      onUpdateCommandBlockMinecart in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laaq;)V
      intermediary method_12049 Lnet/minecraft/class_2792;method_12049(Lnet/minecraft/class_2871;)V
      named onUpdateCommandBlockMinecart Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateCommandBlockMinecart(Lnet/minecraft/network/packet/c2s/play/UpdateCommandBlockMinecartC2SPacket;)V
    • onPickFromInventory

      public void onPickFromInventory(PickFromInventoryC2SPacket packet)
      Specified by:
      onPickFromInventory in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laaa;)V
      intermediary method_12084 Lnet/minecraft/class_2792;method_12084(Lnet/minecraft/class_2838;)V
      named onPickFromInventory Lnet/minecraft/network/listener/ServerPlayPacketListener;onPickFromInventory(Lnet/minecraft/network/packet/c2s/play/PickFromInventoryC2SPacket;)V
    • onRenameItem

      public void onRenameItem(RenameItemC2SPacket packet)
      Specified by:
      onRenameItem in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laaj;)V
      intermediary method_12060 Lnet/minecraft/class_2792;method_12060(Lnet/minecraft/class_2855;)V
      named onRenameItem Lnet/minecraft/network/listener/ServerPlayPacketListener;onRenameItem(Lnet/minecraft/network/packet/c2s/play/RenameItemC2SPacket;)V
    • onUpdateBeacon

      public void onUpdateBeacon(UpdateBeaconC2SPacket packet)
      Specified by:
      onUpdateBeacon in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laan;)V
      intermediary method_12057 Lnet/minecraft/class_2792;method_12057(Lnet/minecraft/class_2866;)V
      named onUpdateBeacon Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateBeacon(Lnet/minecraft/network/packet/c2s/play/UpdateBeaconC2SPacket;)V
    • onUpdateStructureBlock

      public void onUpdateStructureBlock(UpdateStructureBlockC2SPacket packet)
      Specified by:
      onUpdateStructureBlock in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laat;)V
      intermediary method_12051 Lnet/minecraft/class_2792;method_12051(Lnet/minecraft/class_2875;)V
      named onUpdateStructureBlock Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateStructureBlock(Lnet/minecraft/network/packet/c2s/play/UpdateStructureBlockC2SPacket;)V
    • onUpdateJigsaw

      public void onUpdateJigsaw(UpdateJigsawC2SPacket packet)
      Specified by:
      onUpdateJigsaw in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laas;)V
      intermediary method_16383 Lnet/minecraft/class_2792;method_16383(Lnet/minecraft/class_3753;)V
      named onUpdateJigsaw Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateJigsaw(Lnet/minecraft/network/packet/c2s/play/UpdateJigsawC2SPacket;)V
    • onJigsawGenerating

      public void onJigsawGenerating(JigsawGeneratingC2SPacket packet)
      Specified by:
      onJigsawGenerating in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzu;)V
      intermediary method_27273 Lnet/minecraft/class_2792;method_27273(Lnet/minecraft/class_5194;)V
      named onJigsawGenerating Lnet/minecraft/network/listener/ServerPlayPacketListener;onJigsawGenerating(Lnet/minecraft/network/packet/c2s/play/JigsawGeneratingC2SPacket;)V
    • onSelectMerchantTrade

      public void onSelectMerchantTrade(SelectMerchantTradeC2SPacket packet)
      Specified by:
      onSelectMerchantTrade in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laam;)V
      intermediary method_12080 Lnet/minecraft/class_2792;method_12080(Lnet/minecraft/class_2863;)V
      named onSelectMerchantTrade Lnet/minecraft/network/listener/ServerPlayPacketListener;onSelectMerchantTrade(Lnet/minecraft/network/packet/c2s/play/SelectMerchantTradeC2SPacket;)V
    • onBookUpdate

      public void onBookUpdate(BookUpdateC2SPacket packet)
      Specified by:
      onBookUpdate in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzr;)V
      intermediary method_12053 Lnet/minecraft/class_2792;method_12053(Lnet/minecraft/class_2820;)V
      named onBookUpdate Lnet/minecraft/network/listener/ServerPlayPacketListener;onBookUpdate(Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;)V
    • updateBookContent

      private void updateBookContent(List<FilteredMessage> pages, int slotId)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/util/List;I)V
      intermediary method_31278 Lnet/minecraft/class_3244;method_31278(Ljava/util/List;I)V
      named updateBookContent Lnet/minecraft/server/network/ServerPlayNetworkHandler;updateBookContent(Ljava/util/List;I)V
    • addBook

      private void addBook(FilteredMessage title, List<FilteredMessage> pages, int slotId)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Laiu;Ljava/util/List;I)V
      intermediary method_31276 Lnet/minecraft/class_3244;method_31276(Lnet/minecraft/class_5837;Ljava/util/List;I)V
      named addBook Lnet/minecraft/server/network/ServerPlayNetworkHandler;addBook(Lnet/minecraft/server/filter/FilteredMessage;Ljava/util/List;I)V
    • setTextToBook

      private void setTextToBook(List<FilteredMessage> messages, UnaryOperator<String> postProcessor, ItemStack book)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/util/List;Ljava/util/function/UnaryOperator;Lcfz;)V
      intermediary method_33796 Lnet/minecraft/class_3244;method_33796(Ljava/util/List;Ljava/util/function/UnaryOperator;Lnet/minecraft/class_1799;)V
      named setTextToBook Lnet/minecraft/server/network/ServerPlayNetworkHandler;setTextToBook(Ljava/util/List;Ljava/util/function/UnaryOperator;Lnet/minecraft/item/ItemStack;)V
    • onQueryEntityNbt

      public void onQueryEntityNbt(QueryEntityNbtC2SPacket packet)
      Specified by:
      onQueryEntityNbt in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzs;)V
      intermediary method_12074 Lnet/minecraft/class_2792;method_12074(Lnet/minecraft/class_2822;)V
      named onQueryEntityNbt Lnet/minecraft/network/listener/ServerPlayPacketListener;onQueryEntityNbt(Lnet/minecraft/network/packet/c2s/play/QueryEntityNbtC2SPacket;)V
    • onQueryBlockNbt

      public void onQueryBlockNbt(QueryBlockNbtC2SPacket packet)
      Specified by:
      onQueryBlockNbt in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lze;)V
      intermediary method_12072 Lnet/minecraft/class_2792;method_12072(Lnet/minecraft/class_2795;)V
      named onQueryBlockNbt Lnet/minecraft/network/listener/ServerPlayPacketListener;onQueryBlockNbt(Lnet/minecraft/network/packet/c2s/play/QueryBlockNbtC2SPacket;)V
    • onPlayerMove

      public void onPlayerMove(PlayerMoveC2SPacket packet)
      Specified by:
      onPlayerMove in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzx;)V
      intermediary method_12063 Lnet/minecraft/class_2792;method_12063(Lnet/minecraft/class_2828;)V
      named onPlayerMove Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerMove(Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;)V
    • isPlayerNotCollidingWithBlocks

      private boolean isPlayerNotCollidingWithBlocks(WorldView world, Box box, double newX, double newY, double newZ)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lcmp;Leed;DDD)Z
      intermediary method_20630 Lnet/minecraft/class_3244;method_20630(Lnet/minecraft/class_4538;Lnet/minecraft/class_238;DDD)Z
      named isPlayerNotCollidingWithBlocks Lnet/minecraft/server/network/ServerPlayNetworkHandler;isPlayerNotCollidingWithBlocks(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/Box;DDD)Z
    • requestTeleport

      public void requestTeleport(double x, double y, double z, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(DDDFF)V
      intermediary method_14363 Lnet/minecraft/class_3244;method_14363(DDDFF)V
      named requestTeleport Lnet/minecraft/server/network/ServerPlayNetworkHandler;requestTeleport(DDDFF)V
    • requestTeleport

      public void requestTeleport(double x, double y, double z, float yaw, float pitch, Set<PositionFlag> flags)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(DDDFFLjava/util/Set;)V
      intermediary method_14360 Lnet/minecraft/class_3244;method_14360(DDDFFLjava/util/Set;)V
      named requestTeleport Lnet/minecraft/server/network/ServerPlayNetworkHandler;requestTeleport(DDDFFLjava/util/Set;)V
    • onPlayerAction

      public void onPlayerAction(PlayerActionC2SPacket packet)
      Specified by:
      onPlayerAction in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laad;)V
      intermediary method_12066 Lnet/minecraft/class_2792;method_12066(Lnet/minecraft/class_2846;)V
      named onPlayerAction Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerAction(Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;)V
    • canPlace

      private static boolean canPlace(ServerPlayerEntity player, ItemStack stack)
      Checks if a player can place a block or fluid from a bucket.

      For this to return true, the player must not be actively cooling down.

      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Laig;Lcfz;)Z
      intermediary method_27913 Lnet/minecraft/class_3244;method_27913(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;)Z
      named canPlace Lnet/minecraft/server/network/ServerPlayNetworkHandler;canPlace(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;)Z
    • onPlayerInteractBlock

      public void onPlayerInteractBlock(PlayerInteractBlockC2SPacket packet)
      Specified by:
      onPlayerInteractBlock in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laax;)V
      intermediary method_12046 Lnet/minecraft/class_2792;method_12046(Lnet/minecraft/class_2885;)V
      named onPlayerInteractBlock Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractBlock(Lnet/minecraft/network/packet/c2s/play/PlayerInteractBlockC2SPacket;)V
    • onPlayerInteractItem

      public void onPlayerInteractItem(PlayerInteractItemC2SPacket packet)
      Specified by:
      onPlayerInteractItem in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laay;)V
      intermediary method_12065 Lnet/minecraft/class_2792;method_12065(Lnet/minecraft/class_2886;)V
      named onPlayerInteractItem Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractItem(Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;)V
    • onSpectatorTeleport

      public void onSpectatorTeleport(SpectatorTeleportC2SPacket packet)
      Specified by:
      onSpectatorTeleport in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laaw;)V
      intermediary method_12073 Lnet/minecraft/class_2792;method_12073(Lnet/minecraft/class_2884;)V
      named onSpectatorTeleport Lnet/minecraft/network/listener/ServerPlayPacketListener;onSpectatorTeleport(Lnet/minecraft/network/packet/c2s/play/SpectatorTeleportC2SPacket;)V
    • onResourcePackStatus

      public void onResourcePackStatus(ResourcePackStatusC2SPacket packet)
      Specified by:
      onResourcePackStatus in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laak;)V
      intermediary method_12081 Lnet/minecraft/class_2792;method_12081(Lnet/minecraft/class_2856;)V
      named onResourcePackStatus Lnet/minecraft/network/listener/ServerPlayPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/play/ResourcePackStatusC2SPacket;)V
    • onBoatPaddleState

      public void onBoatPaddleState(BoatPaddleStateC2SPacket packet)
      Specified by:
      onBoatPaddleState in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzz;)V
      intermediary method_12064 Lnet/minecraft/class_2792;method_12064(Lnet/minecraft/class_2836;)V
      named onBoatPaddleState Lnet/minecraft/network/listener/ServerPlayPacketListener;onBoatPaddleState(Lnet/minecraft/network/packet/c2s/play/BoatPaddleStateC2SPacket;)V
    • onPong

      public void onPong(PlayPongC2SPacket packet)
      Specified by:
      onPong in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laag;)V
      intermediary method_36580 Lnet/minecraft/class_2792;method_36580(Lnet/minecraft/class_6374;)V
      named onPong Lnet/minecraft/network/listener/ServerPlayPacketListener;onPong(Lnet/minecraft/network/packet/c2s/play/PlayPongC2SPacket;)V
    • onDisconnected

      public void onDisconnected(Text reason)
      Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.
      Specified by:
      onDisconnected in interface PacketListener
      Parameters:
      reason - the reason of disconnection; may be a generic message
      Mappings:
      Namespace Name Mixin selector
      official a Lsk;a(Lsw;)V
      intermediary method_10839 Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
      named onDisconnected Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
    • updateSequence

      public void updateSequence(int sequence)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(I)V
      intermediary method_41255 Lnet/minecraft/class_3244;method_41255(I)V
      named updateSequence Lnet/minecraft/server/network/ServerPlayNetworkHandler;updateSequence(I)V
    • sendPacket

      public void sendPacket(Packet<?> packet)
      Specified by:
      sendPacket in interface EntityTrackingListener
      Mappings:
      Namespace Name Mixin selector
      official a Lajb;a(Luo;)V
      intermediary method_14364 Lnet/minecraft/class_5629;method_14364(Lnet/minecraft/class_2596;)V
      named sendPacket Lnet/minecraft/server/world/EntityTrackingListener;sendPacket(Lnet/minecraft/network/packet/Packet;)V
    • sendPacket

      public void sendPacket(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Luo;Lsl;)V
      intermediary method_14369 Lnet/minecraft/class_3244;method_14369(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)V
      named sendPacket Lnet/minecraft/server/network/ServerPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
    • onUpdateSelectedSlot

      public void onUpdateSelectedSlot(UpdateSelectedSlotC2SPacket packet)
      Specified by:
      onUpdateSelectedSlot in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laao;)V
      intermediary method_12056 Lnet/minecraft/class_2792;method_12056(Lnet/minecraft/class_2868;)V
      named onUpdateSelectedSlot Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateSelectedSlot(Lnet/minecraft/network/packet/c2s/play/UpdateSelectedSlotC2SPacket;)V
    • onChatMessage

      public void onChatMessage(ChatMessageC2SPacket packet)
      Specified by:
      onChatMessage in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzi;)V
      intermediary method_12048 Lnet/minecraft/class_2792;method_12048(Lnet/minecraft/class_2797;)V
      named onChatMessage Lnet/minecraft/network/listener/ServerPlayPacketListener;onChatMessage(Lnet/minecraft/network/packet/c2s/play/ChatMessageC2SPacket;)V
    • onCommandExecution

      public void onCommandExecution(CommandExecutionC2SPacket packet)
      Specified by:
      onCommandExecution in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzh;)V
      intermediary method_43667 Lnet/minecraft/class_2792;method_43667(Lnet/minecraft/class_7472;)V
      named onCommandExecution Lnet/minecraft/network/listener/ServerPlayPacketListener;onCommandExecution(Lnet/minecraft/network/packet/c2s/play/CommandExecutionC2SPacket;)V
    • handleCommandExecution

      private void handleCommandExecution(CommandExecutionC2SPacket packet, LastSeenMessageList lastSeenMessages)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lzh;Ltc;)V
      intermediary method_45010 Lnet/minecraft/class_3244;method_45010(Lnet/minecraft/class_7472;Lnet/minecraft/class_7635;)V
      named handleCommandExecution Lnet/minecraft/server/network/ServerPlayNetworkHandler;handleCommandExecution(Lnet/minecraft/network/packet/c2s/play/CommandExecutionC2SPacket;Lnet/minecraft/network/message/LastSeenMessageList;)V
    • handleMessageChainException

      private void handleMessageChainException(MessageChain.MessageChainException exception)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ltp$a;)V
      intermediary method_45171 Lnet/minecraft/class_3244;method_45171(Lnet/minecraft/class_7610$class_7825;)V
      named handleMessageChainException Lnet/minecraft/server/network/ServerPlayNetworkHandler;handleMessageChainException(Lnet/minecraft/network/message/MessageChain$MessageChainException;)V
    • collectArgumentMessages

      private Map<String,SignedMessage> collectArgumentMessages(CommandExecutionC2SPacket packet, SignedArgumentList<?> arguments, LastSeenMessageList lastSeenMessages) throws MessageChain.MessageChainException
      Returns a map of argument name and value as signed messages.
      Returns:
      a map of argument name and value as signed messages
      Throws:
      MessageChain.MessageChainException
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lzh;Ltn;Ltc;)Ljava/util/Map;
      intermediary method_45006 Lnet/minecraft/class_3244;method_45006(Lnet/minecraft/class_7472;Lnet/minecraft/class_7644;Lnet/minecraft/class_7635;)Ljava/util/Map;
      named collectArgumentMessages Lnet/minecraft/server/network/ServerPlayNetworkHandler;collectArgumentMessages(Lnet/minecraft/network/packet/c2s/play/CommandExecutionC2SPacket;Lnet/minecraft/command/argument/SignedArgumentList;Lnet/minecraft/network/message/LastSeenMessageList;)Ljava/util/Map;
    • parse

      private com.mojang.brigadier.ParseResults<ServerCommandSource> parse(String command)
      Returns the result of parsing command.
      Parameters:
      command - the command to parse (without the leading slash)
      Returns:
      the result of parsing command
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b(Ljava/lang/String;)Lcom/mojang/brigadier/ParseResults;
      intermediary method_45003 Lnet/minecraft/class_3244;method_45003(Ljava/lang/String;)Lcom/mojang/brigadier/ParseResults;
      named parse Lnet/minecraft/server/network/ServerPlayNetworkHandler;parse(Ljava/lang/String;)Lcom/mojang/brigadier/ParseResults;
    • validateMessage

      private Optional<LastSeenMessageList> validateMessage(String message, Instant timestamp, LastSeenMessageList.Acknowledgment acknowledgment)
      Returns the validated acknowledgment if the message is valid, or an empty optional if it is not.

      This disconnects the player if the message arrives in improper order or if chat is disabled.

      Returns:
      the validated acknowledgment if the message is valid, or an empty optional if it is not
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/lang/String;Ljava/time/Instant;Ltc$b;)Ljava/util/Optional;
      intermediary method_44337 Lnet/minecraft/class_3244;method_44337(Ljava/lang/String;Ljava/time/Instant;Lnet/minecraft/class_7635$class_7636;)Ljava/util/Optional;
      named validateMessage Lnet/minecraft/server/network/ServerPlayNetworkHandler;validateMessage(Ljava/lang/String;Ljava/time/Instant;Lnet/minecraft/network/message/LastSeenMessageList$Acknowledgment;)Ljava/util/Optional;
    • validateAcknowledgment

      private Optional<LastSeenMessageList> validateAcknowledgment(LastSeenMessageList.Acknowledgment acknowledgment)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ltc$b;)Ljava/util/Optional;
      intermediary method_45169 Lnet/minecraft/class_3244;method_45169(Lnet/minecraft/class_7635$class_7636;)Ljava/util/Optional;
      named validateAcknowledgment Lnet/minecraft/server/network/ServerPlayNetworkHandler;validateAcknowledgment(Lnet/minecraft/network/message/LastSeenMessageList$Acknowledgment;)Ljava/util/Optional;
    • isInProperOrder

      private boolean isInProperOrder(Instant timestamp)
      Returns whether the message sent at timestamp is received in proper order.

      If false, the message will be discarded.

      Returns:
      whether the message sent at timestamp is received in proper order
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ljava/time/Instant;)Z
      intermediary method_44160 Lnet/minecraft/class_3244;method_44160(Ljava/time/Instant;)Z
      named isInProperOrder Lnet/minecraft/server/network/ServerPlayNetworkHandler;isInProperOrder(Ljava/time/Instant;)Z
    • hasIllegalCharacter

      private static boolean hasIllegalCharacter(String message)
      Returns whether message contains an illegal character.
      Returns:
      whether message contains an illegal character
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Laiy;c(Ljava/lang/String;)Z
      intermediary method_43508 Lnet/minecraft/class_3244;method_43508(Ljava/lang/String;)Z
      named hasIllegalCharacter Lnet/minecraft/server/network/ServerPlayNetworkHandler;hasIllegalCharacter(Ljava/lang/String;)Z
    • getSignedMessage

      private SignedMessage getSignedMessage(ChatMessageC2SPacket packet, LastSeenMessageList lastSeenMessages) throws MessageChain.MessageChainException
      Throws:
      MessageChain.MessageChainException
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lzi;Ltc;)Ltl;
      intermediary method_45011 Lnet/minecraft/class_3244;method_45011(Lnet/minecraft/class_2797;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
      named getSignedMessage Lnet/minecraft/server/network/ServerPlayNetworkHandler;getSignedMessage(Lnet/minecraft/network/packet/c2s/play/ChatMessageC2SPacket;Lnet/minecraft/network/message/LastSeenMessageList;)Lnet/minecraft/network/message/SignedMessage;
    • handleDecoratedMessage

      private void handleDecoratedMessage(SignedMessage message)
      Mappings:
      Namespace Name Mixin selector
      official b Laiy;b(Ltl;)V
      intermediary method_44155 Lnet/minecraft/class_3244;method_44155(Lnet/minecraft/class_7471;)V
      named handleDecoratedMessage Lnet/minecraft/server/network/ServerPlayNetworkHandler;handleDecoratedMessage(Lnet/minecraft/network/message/SignedMessage;)V
    • checkForSpam

      private void checkForSpam()
      Mappings:
      Namespace Name Mixin selector
      official h Laiy;h()V
      intermediary method_43669 Lnet/minecraft/class_3244;method_43669()V
      named checkForSpam Lnet/minecraft/server/network/ServerPlayNetworkHandler;checkForSpam()V
    • onMessageAcknowledgment

      public void onMessageAcknowledgment(MessageAcknowledgmentC2SPacket packet)
      Specified by:
      onMessageAcknowledgment in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzg;)V
      intermediary method_44898 Lnet/minecraft/class_2792;method_44898(Lnet/minecraft/class_7640;)V
      named onMessageAcknowledgment Lnet/minecraft/network/listener/ServerPlayPacketListener;onMessageAcknowledgment(Lnet/minecraft/network/packet/c2s/play/MessageAcknowledgmentC2SPacket;)V
    • onHandSwing

      public void onHandSwing(HandSwingC2SPacket packet)
      Specified by:
      onHandSwing in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laav;)V
      intermediary method_12052 Lnet/minecraft/class_2792;method_12052(Lnet/minecraft/class_2879;)V
      named onHandSwing Lnet/minecraft/network/listener/ServerPlayPacketListener;onHandSwing(Lnet/minecraft/network/packet/c2s/play/HandSwingC2SPacket;)V
    • onClientCommand

      public void onClientCommand(ClientCommandC2SPacket packet)
      Specified by:
      onClientCommand in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laae;)V
      intermediary method_12045 Lnet/minecraft/class_2792;method_12045(Lnet/minecraft/class_2848;)V
      named onClientCommand Lnet/minecraft/network/listener/ServerPlayPacketListener;onClientCommand(Lnet/minecraft/network/packet/c2s/play/ClientCommandC2SPacket;)V
    • addPendingAcknowledgment

      public void addPendingAcknowledgment(SignedMessage message)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ltl;)V
      intermediary method_44897 Lnet/minecraft/class_3244;method_44897(Lnet/minecraft/class_7471;)V
      named addPendingAcknowledgment Lnet/minecraft/server/network/ServerPlayNetworkHandler;addPendingAcknowledgment(Lnet/minecraft/network/message/SignedMessage;)V
    • sendChatMessage

      public void sendChatMessage(SignedMessage message, MessageType.Parameters params)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ltl;Lss$a;)V
      intermediary method_45170 Lnet/minecraft/class_3244;method_45170(Lnet/minecraft/class_7471;Lnet/minecraft/class_2556$class_7602;)V
      named sendChatMessage Lnet/minecraft/server/network/ServerPlayNetworkHandler;sendChatMessage(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/network/message/MessageType$Parameters;)V
    • sendProfilelessChatMessage

      public void sendProfilelessChatMessage(Text message, MessageType.Parameters params)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Lsw;Lss$a;)V
      intermediary method_45168 Lnet/minecraft/class_3244;method_45168(Lnet/minecraft/class_2561;Lnet/minecraft/class_2556$class_7602;)V
      named sendProfilelessChatMessage Lnet/minecraft/server/network/ServerPlayNetworkHandler;sendProfilelessChatMessage(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageType$Parameters;)V
    • getConnectionAddress

      public SocketAddress getConnectionAddress()
      Mappings:
      Namespace Name Mixin selector
      official e Laiy;e()Ljava/net/SocketAddress;
      intermediary method_48107 Lnet/minecraft/class_3244;method_48107()Ljava/net/SocketAddress;
      named getConnectionAddress Lnet/minecraft/server/network/ServerPlayNetworkHandler;getConnectionAddress()Ljava/net/SocketAddress;
    • onPlayerInteractEntity

      public void onPlayerInteractEntity(PlayerInteractEntityC2SPacket packet)
      Specified by:
      onPlayerInteractEntity in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzt;)V
      intermediary method_12062 Lnet/minecraft/class_2792;method_12062(Lnet/minecraft/class_2824;)V
      named onPlayerInteractEntity Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractEntity(Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;)V
    • onClientStatus

      public void onClientStatus(ClientStatusC2SPacket packet)
      Specified by:
      onClientStatus in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzk;)V
      intermediary method_12068 Lnet/minecraft/class_2792;method_12068(Lnet/minecraft/class_2799;)V
      named onClientStatus Lnet/minecraft/network/listener/ServerPlayPacketListener;onClientStatus(Lnet/minecraft/network/packet/c2s/play/ClientStatusC2SPacket;)V
    • onCloseHandledScreen

      public void onCloseHandledScreen(CloseHandledScreenC2SPacket packet)
      Specified by:
      onCloseHandledScreen in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzp;)V
      intermediary method_12054 Lnet/minecraft/class_2792;method_12054(Lnet/minecraft/class_2815;)V
      named onCloseHandledScreen Lnet/minecraft/network/listener/ServerPlayPacketListener;onCloseHandledScreen(Lnet/minecraft/network/packet/c2s/play/CloseHandledScreenC2SPacket;)V
    • onClickSlot

      public void onClickSlot(ClickSlotC2SPacket packet)
      Specified by:
      onClickSlot in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzo;)V
      intermediary method_12076 Lnet/minecraft/class_2792;method_12076(Lnet/minecraft/class_2813;)V
      named onClickSlot Lnet/minecraft/network/listener/ServerPlayPacketListener;onClickSlot(Lnet/minecraft/network/packet/c2s/play/ClickSlotC2SPacket;)V
    • onCraftRequest

      public void onCraftRequest(CraftRequestC2SPacket packet)
      Specified by:
      onCraftRequest in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laab;)V
      intermediary method_12061 Lnet/minecraft/class_2792;method_12061(Lnet/minecraft/class_2840;)V
      named onCraftRequest Lnet/minecraft/network/listener/ServerPlayPacketListener;onCraftRequest(Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;)V
    • onButtonClick

      public void onButtonClick(ButtonClickC2SPacket packet)
      Specified by:
      onButtonClick in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzn;)V
      intermediary method_12055 Lnet/minecraft/class_2792;method_12055(Lnet/minecraft/class_2811;)V
      named onButtonClick Lnet/minecraft/network/listener/ServerPlayPacketListener;onButtonClick(Lnet/minecraft/network/packet/c2s/play/ButtonClickC2SPacket;)V
    • onCreativeInventoryAction

      public void onCreativeInventoryAction(CreativeInventoryActionC2SPacket packet)
      Specified by:
      onCreativeInventoryAction in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laar;)V
      intermediary method_12070 Lnet/minecraft/class_2792;method_12070(Lnet/minecraft/class_2873;)V
      named onCreativeInventoryAction Lnet/minecraft/network/listener/ServerPlayPacketListener;onCreativeInventoryAction(Lnet/minecraft/network/packet/c2s/play/CreativeInventoryActionC2SPacket;)V
    • onUpdateSign

      public void onUpdateSign(UpdateSignC2SPacket packet)
      Specified by:
      onUpdateSign in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laau;)V
      intermediary method_12071 Lnet/minecraft/class_2792;method_12071(Lnet/minecraft/class_2877;)V
      named onUpdateSign Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateSign(Lnet/minecraft/network/packet/c2s/play/UpdateSignC2SPacket;)V
    • onSignUpdate

      private void onSignUpdate(UpdateSignC2SPacket packet, List<FilteredMessage> signText)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Laau;Ljava/util/List;)V
      intermediary method_31282 Lnet/minecraft/class_3244;method_31282(Lnet/minecraft/class_2877;Ljava/util/List;)V
      named onSignUpdate Lnet/minecraft/server/network/ServerPlayNetworkHandler;onSignUpdate(Lnet/minecraft/network/packet/c2s/play/UpdateSignC2SPacket;Ljava/util/List;)V
    • onKeepAlive

      public void onKeepAlive(KeepAliveC2SPacket packet)
      Specified by:
      onKeepAlive in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzv;)V
      intermediary method_12082 Lnet/minecraft/class_2792;method_12082(Lnet/minecraft/class_2827;)V
      named onKeepAlive Lnet/minecraft/network/listener/ServerPlayPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/play/KeepAliveC2SPacket;)V
    • onUpdatePlayerAbilities

      public void onUpdatePlayerAbilities(UpdatePlayerAbilitiesC2SPacket packet)
      Specified by:
      onUpdatePlayerAbilities in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Laac;)V
      intermediary method_12083 Lnet/minecraft/class_2792;method_12083(Lnet/minecraft/class_2842;)V
      named onUpdatePlayerAbilities Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdatePlayerAbilities(Lnet/minecraft/network/packet/c2s/play/UpdatePlayerAbilitiesC2SPacket;)V
    • onClientSettings

      public void onClientSettings(ClientSettingsC2SPacket packet)
      Specified by:
      onClientSettings in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzl;)V
      intermediary method_12069 Lnet/minecraft/class_2792;method_12069(Lnet/minecraft/class_2803;)V
      named onClientSettings Lnet/minecraft/network/listener/ServerPlayPacketListener;onClientSettings(Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;)V
    • onCustomPayload

      public void onCustomPayload(CustomPayloadC2SPacket packet)
      Specified by:
      onCustomPayload in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzq;)V
      intermediary method_12075 Lnet/minecraft/class_2792;method_12075(Lnet/minecraft/class_2817;)V
      named onCustomPayload Lnet/minecraft/network/listener/ServerPlayPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/play/CustomPayloadC2SPacket;)V
    • onUpdateDifficulty

      public void onUpdateDifficulty(UpdateDifficultyC2SPacket packet)
      Specified by:
      onUpdateDifficulty in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzf;)V
      intermediary method_19475 Lnet/minecraft/class_2792;method_19475(Lnet/minecraft/class_4210;)V
      named onUpdateDifficulty Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateDifficulty(Lnet/minecraft/network/packet/c2s/play/UpdateDifficultyC2SPacket;)V
    • onUpdateDifficultyLock

      public void onUpdateDifficultyLock(UpdateDifficultyLockC2SPacket packet)
      Specified by:
      onUpdateDifficultyLock in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzw;)V
      intermediary method_19476 Lnet/minecraft/class_2792;method_19476(Lnet/minecraft/class_4211;)V
      named onUpdateDifficultyLock Lnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateDifficultyLock(Lnet/minecraft/network/packet/c2s/play/UpdateDifficultyLockC2SPacket;)V
    • onPlayerSession

      public void onPlayerSession(PlayerSessionC2SPacket packet)
      Specified by:
      onPlayerSession in interface ServerPlayPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a(Lzj;)V
      intermediary method_46367 Lnet/minecraft/class_2792;method_46367(Lnet/minecraft/class_7861;)V
      named onPlayerSession Lnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerSession(Lnet/minecraft/network/packet/c2s/play/PlayerSessionC2SPacket;)V
    • setSession

      private void setSession(PublicPlayerSession session)
      Mappings:
      Namespace Name Mixin selector
      official a Laiy;a(Ltm;)V
      intermediary method_46365 Lnet/minecraft/class_3244;method_46365(Lnet/minecraft/class_7822;)V
      named setSession Lnet/minecraft/server/network/ServerPlayNetworkHandler;setSession(Lnet/minecraft/network/encryption/PublicPlayerSession;)V
    • getPlayer

      public ServerPlayerEntity getPlayer()
      Specified by:
      getPlayer in interface EntityTrackingListener
      Mappings:
      Namespace Name Mixin selector
      official f Lajb;f()Laig;
      intermediary method_32311 Lnet/minecraft/class_5629;method_32311()Lnet/minecraft/class_3222;
      named getPlayer Lnet/minecraft/server/world/EntityTrackingListener;getPlayer()Lnet/minecraft/server/network/ServerPlayerEntity;