public class Bot extends SimpleChannelInboundHandler
Class Bot. Provides bot functionality for the Hytale server.
java.lang.Object > SimpleChannelInboundHandler > Bot
Field Summary
channel
Field channel.
id
Field id.
pos
Field pos.
address
Field address.
dt
Field dt.
packet
Field packet.
movementDistance
Field movementDistance.
random
Field random.
randX
Field randX.
randY
Field randY.
randZ
Field randZ.
uuid
Field uuid.
entityUpdates
Field entityUpdates.
entry
Field entry.
clientTeleport
Field clientTeleport.
modelTransform
Field modelTransform.
movement
Field movement.
ping
Field ping.
instantData
Field instantData.
position
Field position.
lookOrientation
Field lookOrientation.
Method Detail
Bot
Method Bot.
- Parameters:
final Stringname@Nonnull final BotConfigconfigfinal inttickStepNanos
Bootstrap
new
Bootstrap
()
Method Bootstrap.
initChannel
void
initChannel
(@Nonnull final SocketChannel channel)
Method initChannel.
- Parameters:
@Nonnull final SocketChannelchannel
PacketDecoder
new
PacketDecoder
()
Method PacketDecoder.
PacketEncoder
new
PacketEncoder
()
Method PacketEncoder.
shutdown
void
shutdown
()
Method shutdown.
tick
void
tick
(final float dt)
Method tick.
- Parameters:
final floatdt
Pong
new
Pong
(packet.id, WorldTimeResource.instantToInstantData(Instant.now()
Method Pong.
- Parameters:
packet.idpacket.idWorldTimeResource.instantToInstantData(Instant.now(WorldTimeResource.instantToInstantData(Instant.now(
channelActive
void
channelActive
(@Nonnull final ChannelHandlerContext ctx)
Method channelActive.
- Parameters:
@Nonnull final ChannelHandlerContextctx
Connect
new
Connect
("6708f121966c1c443f4b0eb525b2f81d0a8dc61f5003a692a8fa157e5e02cea9", ClientType.Game, "en", null, uuid, this.name, null, null)
Method Connect.
- Parameters:
"6708f121966c1c443f4b0eb525b2f81d0a8dc61f5003a692a8fa157e5e02cea9""6708f121966c1c443f4b0eb525b2f81d0a8dc61f5003a692a8fa157e5e02cea9"ClientType.GameClientType.Game"en""en"nullnulluuiduuidthis.namethis.name
channelInactive
void
channelInactive
(final ChannelHandlerContext ctx)
Method channelInactive.
- Parameters:
final ChannelHandlerContextctx
exceptionCaught
void
exceptionCaught
(@Nonnull final ChannelHandlerContext ctx, @Nonnull final Throwable cause)
Method exceptionCaught.
- Parameters:
@Nonnull final ChannelHandlerContextctx@Nonnull final Throwablecause
Disconnect
new
Disconnect
(cause.getMessage()
Method Disconnect.
- Parameters:
cause.getMessage(cause.getMessage(
channelRead0
Method channelRead0.
- Parameters:
@Nonnull final ChannelHandlerContextctx@Nonnull final Packetpacket
RequestAssets
new
RequestAssets
(Bot.EMPTY_ASSET_ARRAY)
Method RequestAssets.
- Parameters:
Bot.EMPTY_ASSET_ARRAYBot.EMPTY_ASSET_ARRAY
ViewRadius
new
ViewRadius
(this.config.viewRadius)
Method ViewRadius.
- Parameters:
this.config.viewRadiusthis.config.viewRadius
PlayerOptions
new
PlayerOptions
(CosmeticsModule.get()
Method PlayerOptions.
- Parameters:
CosmeticsModule.get(CosmeticsModule.get(
ClientReady
new
ClientReady
(true, this.id != -1)
Method ClientReady.
- Parameters:
truetruethis.id !=-1
updateModelTransform
Method updateModelTransform.
- Parameters:
@Nonnull final ModelTransformmodelTransform
toString
String
toString
()
Method toString.
findEntityUpdate
Method findEntityUpdate.
- Parameters:
@Nonnull final EntityUpdatesbulkListfinal intid