|
|
@ -52,10 +52,9 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LoginPacket loginPacket) {
|
|
|
|
public boolean handle(LoginPacket loginPacket) {
|
|
|
|
System.err.println("Handled " + loginPacket.getClass().getSimpleName());
|
|
|
|
|
|
|
|
// TODO: Implement support for multiple protocols
|
|
|
|
// TODO: Implement support for multiple protocols
|
|
|
|
if (loginPacket.getProtocolVersion() != GeyserConnector.BEDROCK_PACKET_CODEC.getProtocolVersion()) {
|
|
|
|
if (loginPacket.getProtocolVersion() != GeyserConnector.BEDROCK_PACKET_CODEC.getProtocolVersion()) {
|
|
|
|
System.out.println("unsupported");
|
|
|
|
connector.getLogger().debug("unsupported");
|
|
|
|
session.getUpstream().disconnect("Unsupported Bedrock version. Are you running an outdated version?");
|
|
|
|
session.getUpstream().disconnect("Unsupported Bedrock version. Are you running an outdated version?");
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,12 +77,8 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlayStatusPacket playStatus = new PlayStatusPacket();
|
|
|
|
PlayStatusPacket playStatus = new PlayStatusPacket();
|
|
|
|
|
|
|
|
|
|
|
|
playStatus.setStatus(PlayStatusPacket.Status.LOGIN_SUCCESS);
|
|
|
|
playStatus.setStatus(PlayStatusPacket.Status.LOGIN_SUCCESS);
|
|
|
|
|
|
|
|
|
|
|
|
session.getUpstream().sendPacketImmediately(playStatus);
|
|
|
|
session.getUpstream().sendPacketImmediately(playStatus);
|
|
|
|
|
|
|
|
|
|
|
|
ResourcePacksInfoPacket resourcePacksInfo = new ResourcePacksInfoPacket();
|
|
|
|
ResourcePacksInfoPacket resourcePacksInfo = new ResourcePacksInfoPacket();
|
|
|
@ -93,7 +88,7 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackClientResponsePacket textPacket) {
|
|
|
|
public boolean handle(ResourcePackClientResponsePacket textPacket) {
|
|
|
|
System.err.println("Handled " + textPacket.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled " + textPacket.getClass().getSimpleName());
|
|
|
|
switch (textPacket.getStatus()) {
|
|
|
|
switch (textPacket.getStatus()) {
|
|
|
|
case COMPLETED:
|
|
|
|
case COMPLETED:
|
|
|
|
session.connect(connector.getRemoteServer());
|
|
|
|
session.connect(connector.getRemoteServer());
|
|
|
@ -115,13 +110,13 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AdventureSettingsPacket packet) {
|
|
|
|
public boolean handle(AdventureSettingsPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AnimatePacket packet) {
|
|
|
|
public boolean handle(AnimatePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
switch (packet.getAction()) {
|
|
|
|
switch (packet.getAction()) {
|
|
|
|
case SWING_ARM:
|
|
|
|
case SWING_ARM:
|
|
|
|
ClientPlayerSwingArmPacket swingArmPacket = new ClientPlayerSwingArmPacket(Hand.MAIN_HAND);
|
|
|
|
ClientPlayerSwingArmPacket swingArmPacket = new ClientPlayerSwingArmPacket(Hand.MAIN_HAND);
|
|
|
@ -132,55 +127,55 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockEntityDataPacket packet) {
|
|
|
|
public boolean handle(BlockEntityDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockPickRequestPacket packet) {
|
|
|
|
public boolean handle(BlockPickRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BookEditPacket packet) {
|
|
|
|
public boolean handle(BookEditPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheBlobStatusPacket packet) {
|
|
|
|
public boolean handle(ClientCacheBlobStatusPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheMissResponsePacket packet) {
|
|
|
|
public boolean handle(ClientCacheMissResponsePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheStatusPacket packet) {
|
|
|
|
public boolean handle(ClientCacheStatusPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientToServerHandshakePacket packet) {
|
|
|
|
public boolean handle(ClientToServerHandshakePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandBlockUpdatePacket packet) {
|
|
|
|
public boolean handle(CommandBlockUpdatePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandRequestPacket packet) {
|
|
|
|
public boolean handle(CommandRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
|
|
|
|
|
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getCommand());
|
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getCommand());
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
@ -190,229 +185,229 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerClosePacket packet) {
|
|
|
|
public boolean handle(ContainerClosePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CraftingEventPacket packet) {
|
|
|
|
public boolean handle(CraftingEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityEventPacket packet) {
|
|
|
|
public boolean handle(EntityEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityFallPacket packet) {
|
|
|
|
public boolean handle(EntityFallPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityPickRequestPacket packet) {
|
|
|
|
public boolean handle(EntityPickRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(EventPacket packet) {
|
|
|
|
public boolean handle(EventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(InteractPacket packet) {
|
|
|
|
public boolean handle(InteractPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventoryContentPacket packet) {
|
|
|
|
public boolean handle(InventoryContentPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventorySlotPacket packet) {
|
|
|
|
public boolean handle(InventorySlotPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventoryTransactionPacket packet) {
|
|
|
|
public boolean handle(InventoryTransactionPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ItemFrameDropItemPacket packet) {
|
|
|
|
public boolean handle(ItemFrameDropItemPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LabTablePacket packet) {
|
|
|
|
public boolean handle(LabTablePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LecternUpdatePacket packet) {
|
|
|
|
public boolean handle(LecternUpdatePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelEventGenericPacket packet) {
|
|
|
|
public boolean handle(LevelEventGenericPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEventPacket packet) {
|
|
|
|
public boolean handle(LevelSoundEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEvent3Packet packet) {
|
|
|
|
public boolean handle(LevelSoundEvent3Packet packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MapInfoRequestPacket packet) {
|
|
|
|
public boolean handle(MapInfoRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobArmorEquipmentPacket packet) {
|
|
|
|
public boolean handle(MobArmorEquipmentPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobEquipmentPacket packet) {
|
|
|
|
public boolean handle(MobEquipmentPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ModalFormResponsePacket packet) {
|
|
|
|
public boolean handle(ModalFormResponsePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MoveEntityAbsolutePacket packet) {
|
|
|
|
public boolean handle(MoveEntityAbsolutePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MovePlayerPacket packet) {
|
|
|
|
public boolean handle(MovePlayerPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(NetworkStackLatencyPacket packet) {
|
|
|
|
public boolean handle(NetworkStackLatencyPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PhotoTransferPacket packet) {
|
|
|
|
public boolean handle(PhotoTransferPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerActionPacket packet) {
|
|
|
|
public boolean handle(PlayerActionPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerHotbarPacket packet) {
|
|
|
|
public boolean handle(PlayerHotbarPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerInputPacket packet) {
|
|
|
|
public boolean handle(PlayerInputPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerSkinPacket packet) {
|
|
|
|
public boolean handle(PlayerSkinPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PurchaseReceiptPacket packet) {
|
|
|
|
public boolean handle(PurchaseReceiptPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(RequestChunkRadiusPacket packet) {
|
|
|
|
public boolean handle(RequestChunkRadiusPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackChunkRequestPacket packet) {
|
|
|
|
public boolean handle(ResourcePackChunkRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(RiderJumpPacket packet) {
|
|
|
|
public boolean handle(RiderJumpPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerSettingsRequestPacket packet) {
|
|
|
|
public boolean handle(ServerSettingsRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDefaultGameTypePacket packet) {
|
|
|
|
public boolean handle(SetDefaultGameTypePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetLocalPlayerAsInitializedPacket packet) {
|
|
|
|
public boolean handle(SetLocalPlayerAsInitializedPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetPlayerGameTypePacket packet) {
|
|
|
|
public boolean handle(SetPlayerGameTypePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SubClientLoginPacket packet) {
|
|
|
|
public boolean handle(SubClientLoginPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(TextPacket packet) {
|
|
|
|
public boolean handle(TextPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
|
|
|
|
|
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getMessage());
|
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getMessage());
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
@ -422,493 +417,493 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddBehaviorTreePacket packet) {
|
|
|
|
public boolean handle(AddBehaviorTreePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddEntityPacket packet) {
|
|
|
|
public boolean handle(AddEntityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddHangingEntityPacket packet) {
|
|
|
|
public boolean handle(AddHangingEntityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddItemEntityPacket packet) {
|
|
|
|
public boolean handle(AddItemEntityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddPaintingPacket packet) {
|
|
|
|
public boolean handle(AddPaintingPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddPlayerPacket packet) {
|
|
|
|
public boolean handle(AddPlayerPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AvailableCommandsPacket packet) {
|
|
|
|
public boolean handle(AvailableCommandsPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockEventPacket packet) {
|
|
|
|
public boolean handle(BlockEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BossEventPacket packet) {
|
|
|
|
public boolean handle(BossEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CameraPacket packet) {
|
|
|
|
public boolean handle(CameraPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ChangeDimensionPacket packet) {
|
|
|
|
public boolean handle(ChangeDimensionPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ChunkRadiusUpdatedPacket packet) {
|
|
|
|
public boolean handle(ChunkRadiusUpdatedPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientboundMapItemDataPacket packet) {
|
|
|
|
public boolean handle(ClientboundMapItemDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandOutputPacket packet) {
|
|
|
|
public boolean handle(CommandOutputPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerOpenPacket packet) {
|
|
|
|
public boolean handle(ContainerOpenPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerSetDataPacket packet) {
|
|
|
|
public boolean handle(ContainerSetDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(CraftingDataPacket packet) {
|
|
|
|
public boolean handle(CraftingDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(DisconnectPacket packet) {
|
|
|
|
public boolean handle(DisconnectPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ExplodePacket packet) {
|
|
|
|
public boolean handle(ExplodePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelChunkPacket packet) {
|
|
|
|
public boolean handle(LevelChunkPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(GameRulesChangedPacket packet) {
|
|
|
|
public boolean handle(GameRulesChangedPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(GuiDataPickItemPacket packet) {
|
|
|
|
public boolean handle(GuiDataPickItemPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(HurtArmorPacket packet) {
|
|
|
|
public boolean handle(HurtArmorPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AutomationClientConnectPacket packet) {
|
|
|
|
public boolean handle(AutomationClientConnectPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelEventPacket packet) {
|
|
|
|
public boolean handle(LevelEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MapCreateLockedCopyPacket packet) {
|
|
|
|
public boolean handle(MapCreateLockedCopyPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobEffectPacket packet) {
|
|
|
|
public boolean handle(MobEffectPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ModalFormRequestPacket packet) {
|
|
|
|
public boolean handle(ModalFormRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(MoveEntityDeltaPacket packet) {
|
|
|
|
public boolean handle(MoveEntityDeltaPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(NpcRequestPacket packet) {
|
|
|
|
public boolean handle(NpcRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(OnScreenTextureAnimationPacket packet) {
|
|
|
|
public boolean handle(OnScreenTextureAnimationPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerListPacket packet) {
|
|
|
|
public boolean handle(PlayerListPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlaySoundPacket packet) {
|
|
|
|
public boolean handle(PlaySoundPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayStatusPacket packet) {
|
|
|
|
public boolean handle(PlayStatusPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(RemoveEntityPacket packet) {
|
|
|
|
public boolean handle(RemoveEntityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(RemoveObjectivePacket packet) {
|
|
|
|
public boolean handle(RemoveObjectivePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackChunkDataPacket packet) {
|
|
|
|
public boolean handle(ResourcePackChunkDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackDataInfoPacket packet) {
|
|
|
|
public boolean handle(ResourcePackDataInfoPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePacksInfoPacket packet) {
|
|
|
|
public boolean handle(ResourcePacksInfoPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackStackPacket packet) {
|
|
|
|
public boolean handle(ResourcePackStackPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(RespawnPacket packet) {
|
|
|
|
public boolean handle(RespawnPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ScriptCustomEventPacket packet) {
|
|
|
|
public boolean handle(ScriptCustomEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerSettingsResponsePacket packet) {
|
|
|
|
public boolean handle(ServerSettingsResponsePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerToClientHandshakePacket packet) {
|
|
|
|
public boolean handle(ServerToClientHandshakePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetCommandsEnabledPacket packet) {
|
|
|
|
public boolean handle(SetCommandsEnabledPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDifficultyPacket packet) {
|
|
|
|
public boolean handle(SetDifficultyPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDisplayObjectivePacket packet) {
|
|
|
|
public boolean handle(SetDisplayObjectivePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityDataPacket packet) {
|
|
|
|
public boolean handle(SetEntityDataPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityLinkPacket packet) {
|
|
|
|
public boolean handle(SetEntityLinkPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityMotionPacket packet) {
|
|
|
|
public boolean handle(SetEntityMotionPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetHealthPacket packet) {
|
|
|
|
public boolean handle(SetHealthPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetLastHurtByPacket packet) {
|
|
|
|
public boolean handle(SetLastHurtByPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetScoreboardIdentityPacket packet) {
|
|
|
|
public boolean handle(SetScoreboardIdentityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetScorePacket packet) {
|
|
|
|
public boolean handle(SetScorePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetSpawnPositionPacket packet) {
|
|
|
|
public boolean handle(SetSpawnPositionPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetTimePacket packet) {
|
|
|
|
public boolean handle(SetTimePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetTitlePacket packet) {
|
|
|
|
public boolean handle(SetTitlePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowCreditsPacket packet) {
|
|
|
|
public boolean handle(ShowCreditsPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowProfilePacket packet) {
|
|
|
|
public boolean handle(ShowProfilePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowStoreOfferPacket packet) {
|
|
|
|
public boolean handle(ShowStoreOfferPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SimpleEventPacket packet) {
|
|
|
|
public boolean handle(SimpleEventPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SpawnExperienceOrbPacket packet) {
|
|
|
|
public boolean handle(SpawnExperienceOrbPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(StartGamePacket packet) {
|
|
|
|
public boolean handle(StartGamePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(StopSoundPacket packet) {
|
|
|
|
public boolean handle(StopSoundPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureBlockUpdatePacket packet) {
|
|
|
|
public boolean handle(StructureBlockUpdatePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureTemplateDataExportRequestPacket packet) {
|
|
|
|
public boolean handle(StructureTemplateDataExportRequestPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureTemplateDataExportResponsePacket packet) {
|
|
|
|
public boolean handle(StructureTemplateDataExportResponsePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(TakeItemEntityPacket packet) {
|
|
|
|
public boolean handle(TakeItemEntityPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(TransferPacket packet) {
|
|
|
|
public boolean handle(TransferPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateAttributesPacket packet) {
|
|
|
|
public boolean handle(UpdateAttributesPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockPacket packet) {
|
|
|
|
public boolean handle(UpdateBlockPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockPropertiesPacket packet) {
|
|
|
|
public boolean handle(UpdateBlockPropertiesPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockSyncedPacket packet) {
|
|
|
|
public boolean handle(UpdateBlockSyncedPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateEquipPacket packet) {
|
|
|
|
public boolean handle(UpdateEquipPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateSoftEnumPacket packet) {
|
|
|
|
public boolean handle(UpdateSoftEnumPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateTradePacket packet) {
|
|
|
|
public boolean handle(UpdateTradePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(AvailableEntityIdentifiersPacket packet) {
|
|
|
|
public boolean handle(AvailableEntityIdentifiersPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(BiomeDefinitionListPacket packet) {
|
|
|
|
public boolean handle(BiomeDefinitionListPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEvent2Packet packet) {
|
|
|
|
public boolean handle(LevelSoundEvent2Packet packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(NetworkChunkPublisherUpdatePacket packet) {
|
|
|
|
public boolean handle(NetworkChunkPublisherUpdatePacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(SpawnParticleEffectPacket packet) {
|
|
|
|
public boolean handle(SpawnParticleEffectPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean handle(VideoStreamConnectPacket packet) {
|
|
|
|
public boolean handle(VideoStreamConnectPacket packet) {
|
|
|
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|