public class ServerPlayNetHandler extends java.lang.Object implements IServerPlayNetHandler
Modifier and Type | Field and Description |
---|---|
private int |
chatSpamThresholdCount |
private double |
firstGoodX |
private double |
firstGoodY |
private double |
firstGoodZ |
private boolean |
floating |
private int |
floatingTickCount |
private int |
itemDropThreshold |
private long |
keepAliveKey |
private boolean |
keepAlivePending |
private long |
keepAliveTime |
private double |
lastGoodX |
private double |
lastGoodY |
private double |
lastGoodZ |
private int |
lastMovePacketCounter |
private int |
lastPositionUpdate |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Entity |
lowestRiddenEnt |
private double |
lowestRiddenX |
private double |
lowestRiddenX1 |
private double |
lowestRiddenY |
private double |
lowestRiddenY1 |
private double |
lowestRiddenZ |
private double |
lowestRiddenZ1 |
private int |
movePacketCounter |
NetworkManager |
netManager |
private int |
networkTickCount |
private it.unimi.dsi.fastutil.ints.Int2ShortMap |
pendingTransactions |
ServerPlayerEntity |
player |
private MinecraftServer |
server |
private Vec3d |
targetPos |
private int |
teleportId |
private boolean |
vehicleFloating |
private int |
vehicleFloatingTickCount |
Constructor and Description |
---|
ServerPlayNetHandler(MinecraftServer server,
NetworkManager networkManagerIn,
ServerPlayerEntity playerIn) |
private static final org.apache.logging.log4j.Logger LOGGER
public final NetworkManager netManager
private final MinecraftServer server
public ServerPlayerEntity player
private int networkTickCount
private long keepAliveTime
private boolean keepAlivePending
private long keepAliveKey
private int chatSpamThresholdCount
private int itemDropThreshold
private final it.unimi.dsi.fastutil.ints.Int2ShortMap pendingTransactions
private double firstGoodX
private double firstGoodY
private double firstGoodZ
private double lastGoodX
private double lastGoodY
private double lastGoodZ
private Entity lowestRiddenEnt
private double lowestRiddenX
private double lowestRiddenY
private double lowestRiddenZ
private double lowestRiddenX1
private double lowestRiddenY1
private double lowestRiddenZ1
private Vec3d targetPos
private int teleportId
private int lastPositionUpdate
private boolean floating
private int floatingTickCount
private boolean vehicleFloating
private int vehicleFloatingTickCount
private int movePacketCounter
private int lastMovePacketCounter
public ServerPlayNetHandler(MinecraftServer server, NetworkManager networkManagerIn, ServerPlayerEntity playerIn)
public void tick()
public void captureCurrentPosition()
public NetworkManager getNetworkManager()
getNetworkManager
in interface INetHandler
private boolean func_217264_d()
public void disconnect(ITextComponent textComponent)
public void processInput(CInputPacket packetIn)
processInput
in interface IServerPlayNetHandler
private static boolean isMovePlayerPacketInvalid(CPlayerPacket packetIn)
private static boolean isMoveVehiclePacketInvalid(CMoveVehiclePacket packetIn)
public void processVehicleMove(CMoveVehiclePacket packetIn)
processVehicleMove
in interface IServerPlayNetHandler
public void processConfirmTeleport(CConfirmTeleportPacket packetIn)
processConfirmTeleport
in interface IServerPlayNetHandler
public void handleRecipeBookUpdate(CRecipeInfoPacket packetIn)
handleRecipeBookUpdate
in interface IServerPlayNetHandler
public void handleSeenAdvancements(CSeenAdvancementsPacket packetIn)
handleSeenAdvancements
in interface IServerPlayNetHandler
public void processTabComplete(CTabCompletePacket packetIn)
processTabComplete
in interface IServerPlayNetHandler
public void processUpdateCommandBlock(CUpdateCommandBlockPacket packetIn)
processUpdateCommandBlock
in interface IServerPlayNetHandler
public void processUpdateCommandMinecart(CUpdateMinecartCommandBlockPacket packetIn)
processUpdateCommandMinecart
in interface IServerPlayNetHandler
public void processPickItem(CPickItemPacket packetIn)
processPickItem
in interface IServerPlayNetHandler
public void processRenameItem(CRenameItemPacket packetIn)
processRenameItem
in interface IServerPlayNetHandler
public void processUpdateBeacon(CUpdateBeaconPacket packetIn)
processUpdateBeacon
in interface IServerPlayNetHandler
public void processUpdateStructureBlock(CUpdateStructureBlockPacket packetIn)
processUpdateStructureBlock
in interface IServerPlayNetHandler
public void func_217262_a(CUpdateJigsawBlockPacket p_217262_1_)
func_217262_a
in interface IServerPlayNetHandler
public void processSelectTrade(CSelectTradePacket packetIn)
processSelectTrade
in interface IServerPlayNetHandler
public void processEditBook(CEditBookPacket packetIn)
processEditBook
in interface IServerPlayNetHandler
public void processNBTQueryEntity(CQueryEntityNBTPacket packetIn)
processNBTQueryEntity
in interface IServerPlayNetHandler
public void processNBTQueryBlockEntity(CQueryTileEntityNBTPacket packetIn)
processNBTQueryBlockEntity
in interface IServerPlayNetHandler
public void processPlayer(CPlayerPacket packetIn)
processPlayer
in interface IServerPlayNetHandler
private boolean isPlayerNotInBlock(IWorldReader worldIn)
public void setPlayerLocation(double x, double y, double z, float yaw, float pitch)
public void setPlayerLocation(double x, double y, double z, float yaw, float pitch, java.util.Set<SPlayerPositionLookPacket.Flags> relativeSet)
public void processPlayerDigging(CPlayerDiggingPacket packetIn)
processPlayerDigging
in interface IServerPlayNetHandler
public void processTryUseItemOnBlock(CPlayerTryUseItemOnBlockPacket packetIn)
processTryUseItemOnBlock
in interface IServerPlayNetHandler
public void processTryUseItem(CPlayerTryUseItemPacket packetIn)
processTryUseItem
in interface IServerPlayNetHandler
public void handleSpectate(CSpectatePacket packetIn)
handleSpectate
in interface IServerPlayNetHandler
public void handleResourcePackStatus(CResourcePackStatusPacket packetIn)
handleResourcePackStatus
in interface IServerPlayNetHandler
public void processSteerBoat(CSteerBoatPacket packetIn)
processSteerBoat
in interface IServerPlayNetHandler
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public void sendPacket(IPacket<?> packetIn)
public void sendPacket(IPacket<?> packetIn, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> futureListeners)
public void processHeldItemChange(CHeldItemChangePacket packetIn)
processHeldItemChange
in interface IServerPlayNetHandler
public void processChatMessage(CChatMessagePacket packetIn)
processChatMessage
in interface IServerPlayNetHandler
private void handleSlashCommand(java.lang.String command)
public void handleAnimation(CAnimateHandPacket packetIn)
handleAnimation
in interface IServerPlayNetHandler
public void processEntityAction(CEntityActionPacket packetIn)
processEntityAction
in interface IServerPlayNetHandler
public void processUseEntity(CUseEntityPacket packetIn)
processUseEntity
in interface IServerPlayNetHandler
public void processClientStatus(CClientStatusPacket packetIn)
processClientStatus
in interface IServerPlayNetHandler
public void processCloseWindow(CCloseWindowPacket packetIn)
processCloseWindow
in interface IServerPlayNetHandler
public void processClickWindow(CClickWindowPacket packetIn)
processClickWindow
in interface IServerPlayNetHandler
public void processPlaceRecipe(CPlaceRecipePacket packetIn)
processPlaceRecipe
in interface IServerPlayNetHandler
public void processEnchantItem(CEnchantItemPacket packetIn)
processEnchantItem
in interface IServerPlayNetHandler
public void processCreativeInventoryAction(CCreativeInventoryActionPacket packetIn)
processCreativeInventoryAction
in interface IServerPlayNetHandler
public void processConfirmTransaction(CConfirmTransactionPacket packetIn)
processConfirmTransaction
in interface IServerPlayNetHandler
public void processUpdateSign(CUpdateSignPacket packetIn)
processUpdateSign
in interface IServerPlayNetHandler
public void processKeepAlive(CKeepAlivePacket packetIn)
processKeepAlive
in interface IServerPlayNetHandler
public void processPlayerAbilities(CPlayerAbilitiesPacket packetIn)
processPlayerAbilities
in interface IServerPlayNetHandler
public void processClientSettings(CClientSettingsPacket packetIn)
processClientSettings
in interface IServerPlayNetHandler
public void processCustomPayload(CCustomPayloadPacket packetIn)
processCustomPayload
in interface IServerPlayNetHandler
public void func_217263_a(CSetDifficultyPacket p_217263_1_)
func_217263_a
in interface IServerPlayNetHandler
public void func_217261_a(CLockDifficultyPacket p_217261_1_)
func_217261_a
in interface IServerPlayNetHandler