1package com.runehive.net.packet.out;
3import com.runehive.net.packet.OutgoingPacket;
4import com.runehive.net.packet.PacketType;
5import com.runehive.net.codec.ByteModification;
6import com.runehive.game.world.entity.mob.player.Player;
8import java.util.Optional;
9import java.util.function.Consumer;
19 private final Consumer<String>
action;
24 this(
"Enter an amount:", 10,
action);
30 this.inputMessage = message;
31 this.inputLength = length;
36 player.enterInputListener = Optional.of(
action);
This class represents a character controlled by a player.
final PacketBuilder builder
OutgoingPacket(int opcode, int capacity)
Represents RuneScape's custom value types.
ADD
Adds 128 to the value when written, subtracts 128 from the rarity when read.
Represents a type of packet.
VAR_SHORT
A variable packet where the size is indicated by a short.