mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 04:41:06 -05:00
Migrate away from spacehq.org
This commit is contained in:
parent
ce0b5ca9ec
commit
661faf9541
294 changed files with 1461 additions and 1386 deletions
|
@ -2,14 +2,11 @@
|
|||
MCProtocolLib is a simple library for communicating with a Minecraft client/server. It aims to allow people to make custom bots, clients, or servers for Minecraft easily.
|
||||
|
||||
## Example Code
|
||||
See example/org/spacehq/mc/protocol/test
|
||||
See example/com/github/steveice10/mc/protocol/test
|
||||
|
||||
## Building the Source
|
||||
MCProtocolLib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.
|
||||
|
||||
Builds can be downloaded **[here](https://build.spacehq.org/job/MCProtocolLib)**.
|
||||
Javadocs can be found **[here](https://build.spacehq.org/job/MCProtocolLib/javadoc)**.
|
||||
|
||||
## License
|
||||
MCProtocolLib is licensed under the **[MIT license](http://www.opensource.org/licenses/mit-license.html)**.
|
||||
|
||||
|
|
|
@ -1,39 +1,39 @@
|
|||
package org.spacehq.mc.protocol.test;
|
||||
package com.github.steveice10.mc.protocol.test;
|
||||
|
||||
import org.spacehq.mc.auth.data.GameProfile;
|
||||
import org.spacehq.mc.auth.exception.request.RequestException;
|
||||
import org.spacehq.mc.protocol.MinecraftProtocol;
|
||||
import org.spacehq.mc.protocol.MinecraftConstants;
|
||||
import org.spacehq.mc.protocol.data.SubProtocol;
|
||||
import org.spacehq.mc.protocol.ServerLoginHandler;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.GameMode;
|
||||
import org.spacehq.mc.protocol.data.game.setting.Difficulty;
|
||||
import org.spacehq.mc.protocol.data.game.world.WorldType;
|
||||
import org.spacehq.mc.protocol.data.message.ChatColor;
|
||||
import org.spacehq.mc.protocol.data.message.ChatFormat;
|
||||
import org.spacehq.mc.protocol.data.message.Message;
|
||||
import org.spacehq.mc.protocol.data.message.MessageStyle;
|
||||
import org.spacehq.mc.protocol.data.message.TextMessage;
|
||||
import org.spacehq.mc.protocol.data.message.TranslationMessage;
|
||||
import org.spacehq.mc.protocol.data.status.PlayerInfo;
|
||||
import org.spacehq.mc.protocol.data.status.ServerStatusInfo;
|
||||
import org.spacehq.mc.protocol.data.status.VersionInfo;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerInfoBuilder;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerInfoHandler;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerPingTimeHandler;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.ClientChatPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerChatPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerJoinGamePacket;
|
||||
import org.spacehq.packetlib.Client;
|
||||
import org.spacehq.packetlib.Server;
|
||||
import org.spacehq.packetlib.Session;
|
||||
import org.spacehq.packetlib.event.server.ServerAdapter;
|
||||
import org.spacehq.packetlib.event.server.SessionAddedEvent;
|
||||
import org.spacehq.packetlib.event.server.SessionRemovedEvent;
|
||||
import org.spacehq.packetlib.event.session.DisconnectedEvent;
|
||||
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
|
||||
import org.spacehq.packetlib.event.session.SessionAdapter;
|
||||
import org.spacehq.packetlib.tcp.TcpSessionFactory;
|
||||
import com.github.steveice10.mc.auth.data.GameProfile;
|
||||
import com.github.steveice10.mc.auth.exception.request.RequestException;
|
||||
import com.github.steveice10.mc.protocol.MinecraftProtocol;
|
||||
import com.github.steveice10.mc.protocol.MinecraftConstants;
|
||||
import com.github.steveice10.mc.protocol.data.SubProtocol;
|
||||
import com.github.steveice10.mc.protocol.ServerLoginHandler;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.GameMode;
|
||||
import com.github.steveice10.mc.protocol.data.game.setting.Difficulty;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.WorldType;
|
||||
import com.github.steveice10.mc.protocol.data.message.ChatColor;
|
||||
import com.github.steveice10.mc.protocol.data.message.ChatFormat;
|
||||
import com.github.steveice10.mc.protocol.data.message.Message;
|
||||
import com.github.steveice10.mc.protocol.data.message.MessageStyle;
|
||||
import com.github.steveice10.mc.protocol.data.message.TextMessage;
|
||||
import com.github.steveice10.mc.protocol.data.message.TranslationMessage;
|
||||
import com.github.steveice10.mc.protocol.data.status.PlayerInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.ServerStatusInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.VersionInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerInfoBuilder;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerInfoHandler;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerPingTimeHandler;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientChatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerChatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerJoinGamePacket;
|
||||
import com.github.steveice10.packetlib.Client;
|
||||
import com.github.steveice10.packetlib.Server;
|
||||
import com.github.steveice10.packetlib.Session;
|
||||
import com.github.steveice10.packetlib.event.server.ServerAdapter;
|
||||
import com.github.steveice10.packetlib.event.server.SessionAddedEvent;
|
||||
import com.github.steveice10.packetlib.event.server.SessionRemovedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.SessionAdapter;
|
||||
import com.github.steveice10.packetlib.tcp.TcpSessionFactory;
|
||||
|
||||
import java.net.Proxy;
|
||||
import java.util.Arrays;
|
45
pom.xml
45
pom.xml
|
@ -2,9 +2,9 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.spacehq</groupId>
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>mcprotocollib</artifactId>
|
||||
<version>1.11.2-SNAPSHOT</version>
|
||||
<version>1.11.2-1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>MCProtocolLib</name>
|
||||
|
@ -37,45 +37,28 @@
|
|||
</developer>
|
||||
</developers>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>spacehq</id>
|
||||
<name>spacehq-releases</name>
|
||||
<url>https://repo.spacehq.org/content/repositories/releases/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>spacehq</id>
|
||||
<name>spacehq-snapshots</name>
|
||||
<url>https://repo.spacehq.org/content/repositories/snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spacehq-releases</id>
|
||||
<url>https://repo.spacehq.org/content/repositories/releases/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>spacehq-snapshots</id>
|
||||
<url>https://repo.spacehq.org/content/repositories/snapshots/</url>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spacehq</groupId>
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>opennbt</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spacehq</groupId>
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>packetlib</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spacehq</groupId>
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>mcauthlib</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
|
@ -94,20 +77,21 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.5.1</version>
|
||||
<version>3.6.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<version>3.0.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
|
@ -120,6 +104,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.10.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
|
@ -132,7 +117,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.4.1</version>
|
||||
<version>2.4.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
package org.spacehq.mc.protocol;
|
||||
package com.github.steveice10.mc.protocol;
|
||||
|
||||
import org.spacehq.mc.auth.data.GameProfile;
|
||||
import org.spacehq.mc.auth.exception.request.InvalidCredentialsException;
|
||||
import org.spacehq.mc.auth.exception.request.RequestException;
|
||||
import org.spacehq.mc.auth.exception.request.ServiceUnavailableException;
|
||||
import org.spacehq.mc.auth.service.SessionService;
|
||||
import org.spacehq.mc.protocol.data.SubProtocol;
|
||||
import org.spacehq.mc.protocol.data.handshake.HandshakeIntent;
|
||||
import org.spacehq.mc.protocol.data.status.ServerStatusInfo;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerInfoHandler;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerPingTimeHandler;
|
||||
import org.spacehq.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.ClientKeepAlivePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerSetCompressionPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import org.spacehq.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import org.spacehq.mc.protocol.util.CryptUtil;
|
||||
import org.spacehq.packetlib.event.session.ConnectedEvent;
|
||||
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
|
||||
import org.spacehq.packetlib.event.session.SessionAdapter;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import com.github.steveice10.mc.auth.data.GameProfile;
|
||||
import com.github.steveice10.mc.auth.exception.request.InvalidCredentialsException;
|
||||
import com.github.steveice10.mc.auth.exception.request.RequestException;
|
||||
import com.github.steveice10.mc.auth.exception.request.ServiceUnavailableException;
|
||||
import com.github.steveice10.mc.auth.service.SessionService;
|
||||
import com.github.steveice10.mc.protocol.data.SubProtocol;
|
||||
import com.github.steveice10.mc.protocol.data.handshake.HandshakeIntent;
|
||||
import com.github.steveice10.mc.protocol.data.status.ServerStatusInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerInfoHandler;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerPingTimeHandler;
|
||||
import com.github.steveice10.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerSetCompressionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import com.github.steveice10.mc.protocol.util.CryptUtil;
|
||||
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.SessionAdapter;
|
||||
|
||||
import javax.crypto.SecretKey;
|
||||
import java.math.BigInteger;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol;
|
||||
package com.github.steveice10.mc.protocol;
|
||||
|
||||
public class MinecraftConstants {
|
||||
// General Constants
|
|
@ -1,42 +1,134 @@
|
|||
package org.spacehq.mc.protocol;
|
||||
package com.github.steveice10.mc.protocol;
|
||||
|
||||
import org.spacehq.mc.auth.data.GameProfile;
|
||||
import org.spacehq.mc.auth.exception.request.RequestException;
|
||||
import org.spacehq.mc.auth.service.AuthenticationService;
|
||||
import org.spacehq.mc.protocol.data.SubProtocol;
|
||||
import org.spacehq.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.player.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.window.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.world.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.entity.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.entity.player.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.entity.spawn.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.scoreboard.ServerDisplayScoreboardPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.scoreboard.ServerScoreboardObjectivePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.scoreboard.ServerTeamPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.scoreboard.ServerUpdateScorePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.window.*;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.world.*;
|
||||
import org.spacehq.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import org.spacehq.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import org.spacehq.packetlib.Client;
|
||||
import org.spacehq.packetlib.Server;
|
||||
import org.spacehq.packetlib.Session;
|
||||
import org.spacehq.packetlib.crypt.AESEncryption;
|
||||
import org.spacehq.packetlib.crypt.PacketEncryption;
|
||||
import org.spacehq.packetlib.packet.DefaultPacketHeader;
|
||||
import org.spacehq.packetlib.packet.PacketHeader;
|
||||
import org.spacehq.packetlib.packet.PacketProtocol;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientChatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientPluginMessagePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientRequestPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientResourcePackStatusPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientSettingsPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientTabCompletePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerAbilitiesPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerActionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerChangeHeldItemPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerInteractEntityPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerMovementPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerPlaceBlockPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerPositionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerPositionRotationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerRotationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerStatePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerSwingArmPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerUseItemPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.window.ClientCloseWindowPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.window.ClientConfirmTransactionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.window.ClientCreativeInventoryActionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.window.ClientEnchantItemPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.window.ClientWindowActionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientSpectatePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientSteerBoatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientSteerVehiclePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientTeleportConfirmPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientUpdateSignPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.world.ClientVehicleMovePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerBossBarPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerChatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerCombatPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDifficultyPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerJoinGamePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerPlayerListDataPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerPlayerListEntryPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerPluginMessagePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerResourcePackSendPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerRespawnPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerSetCooldownPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerStatisticsPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerSwitchCameraPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerTabCompletePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerTitlePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityAnimationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityAttachPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityCollectItemPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityDestroyPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityEffectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityEquipmentPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityHeadLookPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityMetadataPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityMovementPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityPositionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityPositionRotationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityPropertiesPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityRemoveEffectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityRotationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntitySetPassengersPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityStatusPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityTeleportPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerEntityVelocityPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.ServerVehicleMovePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerAbilitiesPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerChangeHeldItemPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerHealthPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerPositionRotationPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerSetExperiencePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.player.ServerPlayerUseBedPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnExpOrbPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnGlobalEntityPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnMobPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnObjectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnPaintingPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnPlayerPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerCloseWindowPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerConfirmTransactionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerOpenWindowPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerSetSlotPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerWindowItemsPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.window.ServerWindowPropertyPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerBlockBreakAnimPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerBlockChangePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerBlockValuePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerChunkDataPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerExplosionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerMapDataPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerMultiBlockChangePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerNotifyClientPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerOpenTileEntityEditorPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerPlayBuiltinSoundPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerPlayEffectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerPlaySoundPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerSpawnParticlePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerSpawnPositionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerUnloadChunkPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerUpdateTileEntityPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerUpdateTimePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerWorldBorderPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import com.github.steveice10.mc.auth.data.GameProfile;
|
||||
import com.github.steveice10.mc.auth.exception.request.RequestException;
|
||||
import com.github.steveice10.mc.auth.service.AuthenticationService;
|
||||
import com.github.steveice10.mc.protocol.data.SubProtocol;
|
||||
import com.github.steveice10.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerDisplayScoreboardPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerScoreboardObjectivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerTeamPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerUpdateScorePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import com.github.steveice10.packetlib.Client;
|
||||
import com.github.steveice10.packetlib.Server;
|
||||
import com.github.steveice10.packetlib.Session;
|
||||
import com.github.steveice10.packetlib.crypt.AESEncryption;
|
||||
import com.github.steveice10.packetlib.crypt.PacketEncryption;
|
||||
import com.github.steveice10.packetlib.packet.DefaultPacketHeader;
|
||||
import com.github.steveice10.packetlib.packet.PacketHeader;
|
||||
import com.github.steveice10.packetlib.packet.PacketProtocol;
|
||||
|
||||
import java.net.Proxy;
|
||||
import java.security.GeneralSecurityException;
|
|
@ -1,35 +1,34 @@
|
|||
package org.spacehq.mc.protocol;
|
||||
package com.github.steveice10.mc.protocol;
|
||||
|
||||
import org.spacehq.mc.auth.data.GameProfile;
|
||||
import org.spacehq.mc.auth.exception.request.RequestException;
|
||||
import org.spacehq.mc.auth.service.SessionService;
|
||||
import org.spacehq.mc.protocol.data.SubProtocol;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.object.MinecartType;
|
||||
import org.spacehq.mc.protocol.data.message.Message;
|
||||
import org.spacehq.mc.protocol.data.status.PlayerInfo;
|
||||
import org.spacehq.mc.protocol.data.status.ServerStatusInfo;
|
||||
import org.spacehq.mc.protocol.data.status.VersionInfo;
|
||||
import org.spacehq.mc.protocol.data.status.handler.ServerInfoBuilder;
|
||||
import org.spacehq.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.client.ClientKeepAlivePacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import org.spacehq.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import org.spacehq.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import org.spacehq.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import org.spacehq.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import org.spacehq.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import org.spacehq.mc.protocol.util.CryptUtil;
|
||||
import org.spacehq.packetlib.Session;
|
||||
import org.spacehq.packetlib.event.session.ConnectedEvent;
|
||||
import org.spacehq.packetlib.event.session.DisconnectingEvent;
|
||||
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
|
||||
import org.spacehq.packetlib.event.session.SessionAdapter;
|
||||
import com.github.steveice10.mc.protocol.data.SubProtocol;
|
||||
import com.github.steveice10.mc.protocol.data.message.Message;
|
||||
import com.github.steveice10.mc.protocol.data.status.ServerStatusInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.VersionInfo;
|
||||
import com.github.steveice10.mc.protocol.packet.handshake.client.HandshakePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.ingame.server.ServerKeepAlivePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.EncryptionResponsePacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.client.LoginStartPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.EncryptionRequestPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginDisconnectPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSetCompressionPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.login.server.LoginSuccessPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusPingPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.client.StatusQueryPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusPongPacket;
|
||||
import com.github.steveice10.mc.protocol.packet.status.server.StatusResponsePacket;
|
||||
import com.github.steveice10.mc.protocol.util.CryptUtil;
|
||||
import com.github.steveice10.mc.auth.data.GameProfile;
|
||||
import com.github.steveice10.mc.auth.exception.request.RequestException;
|
||||
import com.github.steveice10.mc.auth.service.SessionService;
|
||||
import com.github.steveice10.mc.protocol.data.status.PlayerInfo;
|
||||
import com.github.steveice10.mc.protocol.data.status.handler.ServerInfoBuilder;
|
||||
import com.github.steveice10.packetlib.Session;
|
||||
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
|
||||
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
|
||||
import com.github.steveice10.packetlib.event.session.SessionAdapter;
|
||||
|
||||
import javax.crypto.SecretKey;
|
||||
import java.math.BigInteger;
|
|
@ -0,0 +1,7 @@
|
|||
package com.github.steveice10.mc.protocol;
|
||||
|
||||
import com.github.steveice10.packetlib.Session;
|
||||
|
||||
public interface ServerLoginHandler {
|
||||
public void loggedIn(Session session);
|
||||
}
|
|
@ -1,81 +1,81 @@
|
|||
package org.spacehq.mc.protocol.data;
|
||||
package com.github.steveice10.mc.protocol.data;
|
||||
|
||||
import org.spacehq.mc.protocol.data.game.BossBarAction;
|
||||
import org.spacehq.mc.protocol.data.game.BossBarColor;
|
||||
import org.spacehq.mc.protocol.data.game.BossBarDivision;
|
||||
import org.spacehq.mc.protocol.data.game.ClientRequest;
|
||||
import org.spacehq.mc.protocol.data.game.MessageType;
|
||||
import org.spacehq.mc.protocol.data.game.PlayerListEntryAction;
|
||||
import org.spacehq.mc.protocol.data.game.ResourcePackStatus;
|
||||
import org.spacehq.mc.protocol.data.game.TitleAction;
|
||||
import org.spacehq.mc.protocol.data.game.entity.Effect;
|
||||
import org.spacehq.mc.protocol.data.game.entity.EntityStatus;
|
||||
import org.spacehq.mc.protocol.data.game.entity.EquipmentSlot;
|
||||
import org.spacehq.mc.protocol.data.game.entity.attribute.AttributeType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.attribute.ModifierOperation;
|
||||
import org.spacehq.mc.protocol.data.game.entity.attribute.ModifierType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.metadata.MetadataType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.Animation;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.BlockBreakStage;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.CombatState;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.GameMode;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.Hand;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.InteractAction;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.PlayerAction;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.PlayerState;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.PositionElement;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.GlobalEntityType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.MobType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.PaintingType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.object.HangingDirection;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.object.MinecartType;
|
||||
import org.spacehq.mc.protocol.data.game.entity.type.object.ObjectType;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.CollisionRule;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.NameTagVisibility;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.ObjectiveAction;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.ScoreType;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.ScoreboardAction;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.ScoreboardPosition;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.TeamAction;
|
||||
import org.spacehq.mc.protocol.data.game.scoreboard.TeamColor;
|
||||
import org.spacehq.mc.protocol.data.game.setting.ChatVisibility;
|
||||
import org.spacehq.mc.protocol.data.game.setting.Difficulty;
|
||||
import org.spacehq.mc.protocol.data.game.statistic.Achievement;
|
||||
import org.spacehq.mc.protocol.data.game.statistic.GenericStatistic;
|
||||
import org.spacehq.mc.protocol.data.game.window.ClickItemParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.CreativeGrabParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.DropItemParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.FillStackParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.MoveToHotbarParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.ShiftClickItemParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.SpreadItemParam;
|
||||
import org.spacehq.mc.protocol.data.game.window.WindowAction;
|
||||
import org.spacehq.mc.protocol.data.game.window.WindowType;
|
||||
import org.spacehq.mc.protocol.data.game.window.property.AnvilProperty;
|
||||
import org.spacehq.mc.protocol.data.game.window.property.BrewingStandProperty;
|
||||
import org.spacehq.mc.protocol.data.game.window.property.EnchantmentTableProperty;
|
||||
import org.spacehq.mc.protocol.data.game.window.property.FurnaceProperty;
|
||||
import org.spacehq.mc.protocol.data.game.world.Particle;
|
||||
import org.spacehq.mc.protocol.data.game.world.WorldBorderAction;
|
||||
import org.spacehq.mc.protocol.data.game.world.WorldType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.BlockFace;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.UpdatedTileType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.ChestValueType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.GenericBlockValueType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.MobSpawnerValueType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.NoteBlockValueType;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.PistonValue;
|
||||
import org.spacehq.mc.protocol.data.game.world.block.value.PistonValueType;
|
||||
import org.spacehq.mc.protocol.data.game.world.effect.ParticleEffect;
|
||||
import org.spacehq.mc.protocol.data.game.world.effect.SmokeEffectData;
|
||||
import org.spacehq.mc.protocol.data.game.world.effect.SoundEffect;
|
||||
import org.spacehq.mc.protocol.data.game.world.map.MapIconType;
|
||||
import org.spacehq.mc.protocol.data.game.world.notify.ClientNotification;
|
||||
import org.spacehq.mc.protocol.data.game.world.notify.DemoMessageValue;
|
||||
import org.spacehq.mc.protocol.data.game.world.notify.EnterCreditsValue;
|
||||
import org.spacehq.mc.protocol.data.game.world.sound.BuiltinSound;
|
||||
import org.spacehq.mc.protocol.data.game.world.sound.SoundCategory;
|
||||
import org.spacehq.mc.protocol.data.handshake.HandshakeIntent;
|
||||
import com.github.steveice10.mc.protocol.data.game.BossBarAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.BossBarColor;
|
||||
import com.github.steveice10.mc.protocol.data.game.BossBarDivision;
|
||||
import com.github.steveice10.mc.protocol.data.game.ClientRequest;
|
||||
import com.github.steveice10.mc.protocol.data.game.MessageType;
|
||||
import com.github.steveice10.mc.protocol.data.game.ResourcePackStatus;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.Effect;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.EquipmentSlot;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.attribute.AttributeType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.attribute.ModifierOperation;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.Animation;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.BlockBreakStage;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.GameMode;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.Hand;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.InteractAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.PlayerAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.PositionElement;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.PaintingType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.object.HangingDirection;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.CollisionRule;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.NameTagVisibility;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreType;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.ScoreboardPosition;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.TeamAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.TeamColor;
|
||||
import com.github.steveice10.mc.protocol.data.game.setting.Difficulty;
|
||||
import com.github.steveice10.mc.protocol.data.game.statistic.Achievement;
|
||||
import com.github.steveice10.mc.protocol.data.game.statistic.GenericStatistic;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.ClickItemParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.CreativeGrabParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.ShiftClickItemParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.SpreadItemParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.WindowAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.WindowType;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.property.AnvilProperty;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.property.BrewingStandProperty;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.property.EnchantmentTableProperty;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.property.FurnaceProperty;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.Particle;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.WorldBorderAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.WorldType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.BlockFace;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.UpdatedTileType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.ChestValueType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.GenericBlockValueType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.MobSpawnerValueType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.NoteBlockValueType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.PistonValue;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.value.PistonValueType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.effect.SmokeEffectData;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.effect.SoundEffect;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.map.MapIconType;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.notify.DemoMessageValue;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.notify.EnterCreditsValue;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.sound.SoundCategory;
|
||||
import com.github.steveice10.mc.protocol.data.game.PlayerListEntryAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.TitleAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.EntityStatus;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.attribute.ModifierType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.metadata.MetadataType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.CombatState;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.PlayerState;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.GlobalEntityType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.MobType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.object.MinecartType;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.type.object.ObjectType;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.ObjectiveAction;
|
||||
import com.github.steveice10.mc.protocol.data.game.setting.ChatVisibility;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.DropItemParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.FillStackParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.window.MoveToHotbarParam;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.effect.ParticleEffect;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.notify.ClientNotification;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.sound.BuiltinSound;
|
||||
import com.github.steveice10.mc.protocol.data.handshake.HandshakeIntent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data;
|
||||
package com.github.steveice10.mc.protocol.data;
|
||||
|
||||
public enum SubProtocol {
|
||||
HANDSHAKE,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum BossBarAction {
|
||||
ADD,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum BossBarColor {
|
||||
PINK,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum BossBarDivision {
|
||||
NONE,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum ClientRequest {
|
||||
RESPAWN,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum MessageType {
|
||||
CHAT,
|
|
@ -1,9 +1,9 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
import org.spacehq.mc.auth.data.GameProfile;
|
||||
import org.spacehq.mc.protocol.data.game.entity.player.GameMode;
|
||||
import org.spacehq.mc.protocol.data.message.Message;
|
||||
import org.spacehq.mc.protocol.util.ReflectionToString;
|
||||
import com.github.steveice10.mc.auth.data.GameProfile;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.player.GameMode;
|
||||
import com.github.steveice10.mc.protocol.data.message.Message;
|
||||
import com.github.steveice10.mc.protocol.util.ReflectionToString;
|
||||
|
||||
public class PlayerListEntry {
|
||||
private GameProfile profile;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum PlayerListEntryAction {
|
||||
ADD_PLAYER,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum ResourcePackStatus {
|
||||
SUCCESSFULLY_LOADED,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game;
|
||||
package com.github.steveice10.mc.protocol.data.game;
|
||||
|
||||
public enum TitleAction {
|
||||
TITLE,
|
|
@ -1,9 +1,9 @@
|
|||
package org.spacehq.mc.protocol.data.game.chunk;
|
||||
package com.github.steveice10.mc.protocol.data.game.chunk;
|
||||
|
||||
import org.spacehq.mc.protocol.data.game.world.block.BlockState;
|
||||
import org.spacehq.mc.protocol.util.NetUtil;
|
||||
import org.spacehq.packetlib.io.NetInput;
|
||||
import org.spacehq.packetlib.io.NetOutput;
|
||||
import com.github.steveice10.mc.protocol.data.game.world.block.BlockState;
|
||||
import com.github.steveice10.mc.protocol.util.NetUtil;
|
||||
import com.github.steveice10.packetlib.io.NetInput;
|
||||
import com.github.steveice10.packetlib.io.NetOutput;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.chunk;
|
||||
package com.github.steveice10.mc.protocol.data.game.chunk;
|
||||
|
||||
public class Chunk {
|
||||
private BlockStorage blocks;
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.chunk;
|
||||
package com.github.steveice10.mc.protocol.data.game.chunk;
|
||||
|
||||
import org.spacehq.opennbt.tag.builtin.CompoundTag;
|
||||
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
||||
|
||||
public class Column {
|
||||
private int x;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.chunk;
|
||||
package com.github.steveice10.mc.protocol.data.game.chunk;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package org.spacehq.mc.protocol.data.game.chunk;
|
||||
package com.github.steveice10.mc.protocol.data.game.chunk;
|
||||
|
||||
import org.spacehq.packetlib.io.NetInput;
|
||||
import org.spacehq.packetlib.io.NetOutput;
|
||||
import com.github.steveice10.packetlib.io.NetInput;
|
||||
import com.github.steveice10.packetlib.io.NetOutput;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity;
|
||||
|
||||
public enum Effect {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity;
|
||||
|
||||
public enum EntityStatus {
|
||||
TIPPED_ARROW_EMIT_PARTICLES,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity;
|
||||
|
||||
public enum EquipmentSlot {
|
||||
MAIN_HAND,
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.attribute;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.attribute;
|
||||
|
||||
import org.spacehq.mc.protocol.util.ReflectionToString;
|
||||
import com.github.steveice10.mc.protocol.util.ReflectionToString;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.attribute;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.attribute;
|
||||
|
||||
import org.spacehq.mc.protocol.data.MagicValues;
|
||||
import com.github.steveice10.mc.protocol.data.MagicValues;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.attribute;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.attribute;
|
||||
|
||||
public enum AttributeType {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.attribute;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.attribute;
|
||||
|
||||
public enum ModifierOperation {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.attribute;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.attribute;
|
||||
|
||||
public enum ModifierType {
|
||||
DYNAMIC,
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.metadata;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.metadata;
|
||||
|
||||
import org.spacehq.mc.protocol.util.ReflectionToString;
|
||||
import com.github.steveice10.mc.protocol.util.ReflectionToString;
|
||||
|
||||
public class EntityMetadata {
|
||||
private int id;
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.metadata;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.metadata;
|
||||
|
||||
import org.spacehq.opennbt.tag.builtin.CompoundTag;
|
||||
import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
|
||||
|
||||
public class ItemStack {
|
||||
private int id;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.metadata;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.metadata;
|
||||
|
||||
public enum MetadataType {
|
||||
BYTE,
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.metadata;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.metadata;
|
||||
|
||||
import org.spacehq.mc.protocol.util.ReflectionToString;
|
||||
import com.github.steveice10.mc.protocol.util.ReflectionToString;
|
||||
|
||||
public class Position {
|
||||
private int x;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.metadata;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.metadata;
|
||||
|
||||
public class Rotation {
|
||||
private float pitch;
|
||||
|
@ -34,9 +34,9 @@ public class Rotation {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = Float.hashCode(this.pitch);
|
||||
result = 31 * result + Float.hashCode(this.yaw);
|
||||
result = 31 * result + Float.hashCode(this.roll);
|
||||
int result = Float.floatToIntBits(this.pitch);
|
||||
result = 31 * result + Float.floatToIntBits(this.yaw);
|
||||
result = 31 * result + Float.floatToIntBits(this.roll);
|
||||
return result;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum Animation {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum BlockBreakStage {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum CombatState {
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
import com.github.steveice10.mc.protocol.data.game.world.notify.ClientNotificationValue;
|
||||
|
||||
public enum GameMode implements ClientNotificationValue {
|
||||
|
||||
SURVIVAL,
|
||||
CREATIVE,
|
||||
ADVENTURE,
|
||||
SPECTATOR;
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum Hand {
|
||||
MAIN_HAND,
|
||||
OFF_HAND;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum InteractAction {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum PlayerAction {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum PlayerState {
|
||||
START_SNEAKING,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.player;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.player;
|
||||
|
||||
public enum PositionElement {
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.entity.type;
|
||||
|
||||
public enum GlobalEntityType {
|
||||
|
||||
LIGHTNING_BOLT;
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type;
|
||||
|
||||
public enum MobType {
|
||||
ELDER_GUARDIAN,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type;
|
||||
|
||||
public enum PaintingType {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public class FallingBlockData implements ObjectData {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public enum HangingDirection implements ObjectData {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public enum MinecartType implements ObjectData {
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public interface ObjectData {
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public enum ObjectType {
|
||||
BOAT,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public class ProjectileData implements ObjectData {
|
||||
private int ownerId;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.entity.type.object;
|
||||
package com.github.steveice10.mc.protocol.data.game.entity.type.object;
|
||||
|
||||
public class SplashPotionData implements ObjectData {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum CollisionRule {
|
||||
ALWAYS,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum NameTagVisibility {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum ObjectiveAction {
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum ScoreType {
|
||||
|
||||
INTEGER,
|
||||
HEARTS;
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum ScoreboardAction {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum ScoreboardPosition {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum TeamAction {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.scoreboard;
|
||||
package com.github.steveice10.mc.protocol.data.game.scoreboard;
|
||||
|
||||
public enum TeamColor {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.setting;
|
||||
package com.github.steveice10.mc.protocol.data.game.setting;
|
||||
|
||||
public enum ChatVisibility {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.setting;
|
||||
package com.github.steveice10.mc.protocol.data.game.setting;
|
||||
|
||||
public enum Difficulty {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.setting;
|
||||
package com.github.steveice10.mc.protocol.data.game.setting;
|
||||
|
||||
public enum SkinPart {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public enum Achievement implements Statistic {
|
||||
TAKING_INVENTORY,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public class BreakBlockStatistic implements Statistic {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public class BreakItemStatistic implements Statistic {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public class CraftItemStatistic implements Statistic {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public enum GenericStatistic implements Statistic {
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public interface Statistic {
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.statistic;
|
||||
package com.github.steveice10.mc.protocol.data.game.statistic;
|
||||
|
||||
public class UseItemStatistic implements Statistic {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum ClickItemParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum CreativeGrabParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum DropItemParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum FillStackParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum MoveToHotbarParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum ShiftClickItemParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
|
||||
public enum SpreadItemParam implements WindowActionParam {
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
public enum WindowAction {
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
public interface WindowActionParam {
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window;
|
||||
package com.github.steveice10.mc.protocol.data.game.window;
|
||||
|
||||
public enum WindowType {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window.property;
|
||||
package com.github.steveice10.mc.protocol.data.game.window.property;
|
||||
|
||||
/**
|
||||
* Window properties of an anvil.
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window.property;
|
||||
package com.github.steveice10.mc.protocol.data.game.window.property;
|
||||
|
||||
/**
|
||||
* Window properties of a brewing stand.
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window.property;
|
||||
package com.github.steveice10.mc.protocol.data.game.window.property;
|
||||
|
||||
/**
|
||||
* Window properties of an enchantment table.
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.window.property;
|
||||
package com.github.steveice10.mc.protocol.data.game.window.property;
|
||||
|
||||
/**
|
||||
* Window properties of a furnace.
|
|
@ -0,0 +1,5 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.window.property;
|
||||
|
||||
public interface WindowProperty {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world;
|
||||
package com.github.steveice10.mc.protocol.data.game.world;
|
||||
|
||||
public enum Particle {
|
||||
EXPLOSION_NORMAL,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world;
|
||||
package com.github.steveice10.mc.protocol.data.game.world;
|
||||
|
||||
public enum WorldBorderAction {
|
||||
SET_SIZE,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world;
|
||||
package com.github.steveice10.mc.protocol.data.game.world;
|
||||
|
||||
public enum WorldType {
|
||||
DEFAULT,
|
|
@ -1,6 +1,6 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block;
|
||||
|
||||
import org.spacehq.mc.protocol.data.game.entity.metadata.Position;
|
||||
import com.github.steveice10.mc.protocol.data.game.entity.metadata.Position;
|
||||
|
||||
public class BlockChangeRecord {
|
||||
private Position position;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block;
|
||||
|
||||
public enum BlockFace {
|
||||
DOWN,
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block;
|
||||
|
||||
public class BlockState {
|
||||
private int id;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block;
|
||||
|
||||
public class ExplodedBlockRecord {
|
||||
private int x;
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block;
|
||||
|
||||
public enum UpdatedTileType {
|
||||
MOB_SPAWNER,
|
|
@ -0,0 +1,4 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.world.block.value;
|
||||
|
||||
public interface BlockValue {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.world.block.value;
|
||||
|
||||
public interface BlockValueType {
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.spacehq.mc.protocol.data.game.world.block.value;
|
||||
package com.github.steveice10.mc.protocol.data.game.world.block.value;
|
||||
|
||||
public class ChestValue implements BlockValue {
|
||||
private int viewers;
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue