Class Bot
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate io.netty.channel.socket.SocketChannelprivate final BotConfigprivate final Vector3dstatic final Asset[]private static final ScheduledExecutorServiceprivate intprivate final com.hypixel.hytale.logger.HytaleLoggerprivate final MovementStatesprivate final Stringprivate final it.unimi.dsi.fastutil.objects.ObjectArrayFIFOQueue<Ping> private Vector3dprivate final Vector3fprivate final Vector3fprivate final Vector3dprivate final ScheduledFuture<?> private static final io.netty.channel.EventLoopGroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, Packet packet) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) static EntityUpdatefindEntityUpdate(EntityUpdates bulkList, int id) voidshutdown()voidtick(float dt) toString()voidupdateModelTransform(ModelTransform modelTransform) voidupdateRotation(Direction lookOrientation) Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
EXECUTOR
-
WORKER_GROUP
private static final io.netty.channel.EventLoopGroup WORKER_GROUP -
EMPTY_ASSET_ARRAY
-
logger
@Nonnull private final com.hypixel.hytale.logger.HytaleLogger logger -
name
-
config
-
tickFuture
-
pingPackets
-
movementStates
-
channel
@Nullable private io.netty.channel.socket.SocketChannel channel -
id
private int id -
pos
-
rotation
-
destination
-
temp
-
targetRotation
-
-
Constructor Details
-
Bot
public Bot(String name, @Nonnull BotConfig config, int tickStepNanos) throws InterruptedException, SocketException - Throws:
InterruptedExceptionSocketException
-
-
Method Details
-
shutdown
public void shutdown() -
tick
public void tick(float dt) -
channelActive
public void channelActive(@Nonnull io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
public void exceptionCaught(@Nonnull io.netty.channel.ChannelHandlerContext ctx, @Nonnull Throwable cause) - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead0
public void channelRead0(@Nonnull io.netty.channel.ChannelHandlerContext ctx, @Nonnull Packet packet) - Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<Packet>
-
updateModelTransform
-
updateRotation
-
createMovementPacket
-
toString
-
findEntityUpdate
-