java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Packet>
com.hypixel.hytale.server.core.command.commands.debug.stresstest.Bot
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class Bot extends io.netty.channel.SimpleChannelInboundHandler<Packet>
  • Field Details

    • EXECUTOR

      private static final ScheduledExecutorService EXECUTOR
    • WORKER_GROUP

      private static final io.netty.channel.EventLoopGroup WORKER_GROUP
    • EMPTY_ASSET_ARRAY

      public static final Asset[] EMPTY_ASSET_ARRAY
    • logger

      @Nonnull private final com.hypixel.hytale.logger.HytaleLogger logger
    • name

      private final String name
    • config

      @Nonnull private final BotConfig config
    • tickFuture

      @Nonnull private final ScheduledFuture<?> tickFuture
    • pingPackets

      private final it.unimi.dsi.fastutil.objects.ObjectArrayFIFOQueue<Ping> pingPackets
    • movementStates

      private final MovementStates movementStates
    • channel

      @Nullable private io.netty.channel.socket.SocketChannel channel
    • id

      private int id
    • pos

      private Vector3d pos
    • rotation

      private final Vector3f rotation
    • destination

      private final Vector3d destination
    • temp

      private final Vector3d temp
    • targetRotation

      private final Vector3f targetRotation
  • Constructor Details

  • Method Details

    • shutdown

      public void shutdown()
    • tick

      public void tick(float dt)
    • channelActive

      public void channelActive(@Nonnull io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
    • exceptionCaught

      public void exceptionCaught(@Nonnull io.netty.channel.ChannelHandlerContext ctx, @Nonnull Throwable cause)
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
    • channelRead0

      public void channelRead0(@Nonnull io.netty.channel.ChannelHandlerContext ctx, @Nonnull Packet packet)
      Specified by:
      channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<Packet>
    • updateModelTransform

      public void updateModelTransform(@Nonnull ModelTransform modelTransform)
    • updateRotation

      public void updateRotation(@Nonnull Direction lookOrientation)
    • createMovementPacket

      @Nonnull public ClientMovement createMovementPacket()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • findEntityUpdate

      @Nullable public static EntityUpdate findEntityUpdate(@Nonnull EntityUpdates bulkList, int id)