public class NetHandlerPlayServer extends java.lang.Object implements INetHandlerPlayServer, ITickable
Modifier and Type | Field and Description |
---|---|
private int |
chatSpamThresholdCount |
private ServerRecipeBookHelper |
field_194309_H |
private long |
field_194402_f |
private boolean |
field_194403_g |
private long |
field_194404_h |
private double |
firstGoodX |
private double |
firstGoodY |
private double |
firstGoodZ |
private boolean |
floating |
private int |
floatingTickCount |
private int |
itemDropThreshold |
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 IntHashMap<java.lang.Short> |
pendingTransactions |
EntityPlayerMP |
player |
private MinecraftServer |
serverController |
private Vec3d |
targetPos |
private int |
teleportId |
private boolean |
vehicleFloating |
private int |
vehicleFloatingTickCount |
Constructor and Description |
---|
NetHandlerPlayServer(MinecraftServer server,
NetworkManager networkManagerIn,
EntityPlayerMP playerIn) |
private static final org.apache.logging.log4j.Logger LOGGER
public final NetworkManager netManager
private final MinecraftServer serverController
public EntityPlayerMP player
private int networkTickCount
private long field_194402_f
private boolean field_194403_g
private long field_194404_h
private int chatSpamThresholdCount
private int itemDropThreshold
private final IntHashMap<java.lang.Short> 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
private ServerRecipeBookHelper field_194309_H
public NetHandlerPlayServer(MinecraftServer server, NetworkManager networkManagerIn, EntityPlayerMP playerIn)
private void captureCurrentPosition()
public NetworkManager getNetworkManager()
public void disconnect(ITextComponent textComponent)
public void processInput(CPacketInput packetIn)
processInput
in interface INetHandlerPlayServer
private static boolean isMovePlayerPacketInvalid(CPacketPlayer packetIn)
private static boolean isMoveVehiclePacketInvalid(CPacketVehicleMove packetIn)
public void processVehicleMove(CPacketVehicleMove packetIn)
processVehicleMove
in interface INetHandlerPlayServer
public void processConfirmTeleport(CPacketConfirmTeleport packetIn)
processConfirmTeleport
in interface INetHandlerPlayServer
public void handleRecipeBookUpdate(CPacketRecipeInfo p_191984_1_)
handleRecipeBookUpdate
in interface INetHandlerPlayServer
public void handleSeenAdvancements(CPacketSeenAdvancements p_194027_1_)
handleSeenAdvancements
in interface INetHandlerPlayServer
public void processPlayer(CPacketPlayer packetIn)
processPlayer
in interface INetHandlerPlayServer
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<SPacketPlayerPosLook.EnumFlags> relativeSet)
public void processPlayerDigging(CPacketPlayerDigging packetIn)
processPlayerDigging
in interface INetHandlerPlayServer
public void processTryUseItemOnBlock(CPacketPlayerTryUseItemOnBlock packetIn)
processTryUseItemOnBlock
in interface INetHandlerPlayServer
public void processTryUseItem(CPacketPlayerTryUseItem packetIn)
processTryUseItem
in interface INetHandlerPlayServer
public void handleSpectate(CPacketSpectate packetIn)
handleSpectate
in interface INetHandlerPlayServer
public void handleResourcePackStatus(CPacketResourcePackStatus packetIn)
handleResourcePackStatus
in interface INetHandlerPlayServer
public void processSteerBoat(CPacketSteerBoat packetIn)
processSteerBoat
in interface INetHandlerPlayServer
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public void sendPacket(Packet<?> packetIn)
public void processHeldItemChange(CPacketHeldItemChange packetIn)
processHeldItemChange
in interface INetHandlerPlayServer
public void processChatMessage(CPacketChatMessage packetIn)
processChatMessage
in interface INetHandlerPlayServer
private void handleSlashCommand(java.lang.String command)
public void handleAnimation(CPacketAnimation packetIn)
handleAnimation
in interface INetHandlerPlayServer
public void processEntityAction(CPacketEntityAction packetIn)
processEntityAction
in interface INetHandlerPlayServer
public void processUseEntity(CPacketUseEntity packetIn)
processUseEntity
in interface INetHandlerPlayServer
public void processClientStatus(CPacketClientStatus packetIn)
processClientStatus
in interface INetHandlerPlayServer
public void processCloseWindow(CPacketCloseWindow packetIn)
processCloseWindow
in interface INetHandlerPlayServer
public void processClickWindow(CPacketClickWindow packetIn)
processClickWindow
in interface INetHandlerPlayServer
public void func_194308_a(CPacketPlaceRecipe p_194308_1_)
func_194308_a
in interface INetHandlerPlayServer
public void processEnchantItem(CPacketEnchantItem packetIn)
processEnchantItem
in interface INetHandlerPlayServer
public void processCreativeInventoryAction(CPacketCreativeInventoryAction packetIn)
processCreativeInventoryAction
in interface INetHandlerPlayServer
public void processConfirmTransaction(CPacketConfirmTransaction packetIn)
processConfirmTransaction
in interface INetHandlerPlayServer
public void processUpdateSign(CPacketUpdateSign packetIn)
processUpdateSign
in interface INetHandlerPlayServer
public void processKeepAlive(CPacketKeepAlive packetIn)
processKeepAlive
in interface INetHandlerPlayServer
private long currentTimeMillis()
public void processPlayerAbilities(CPacketPlayerAbilities packetIn)
processPlayerAbilities
in interface INetHandlerPlayServer
public void processTabComplete(CPacketTabComplete packetIn)
processTabComplete
in interface INetHandlerPlayServer
public void processClientSettings(CPacketClientSettings packetIn)
processClientSettings
in interface INetHandlerPlayServer
public void processCustomPayload(CPacketCustomPayload packetIn)
processCustomPayload
in interface INetHandlerPlayServer