Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
4669117
Use static sonstant for ProtocolManager reference
JarvisCraft Feb 25, 2019
1745823
Fix access restrictions of PROTOCOL_MANAGER field
JarvisCraft Feb 25, 2019
6d18872
Add version static constants
JarvisCraft Feb 25, 2019
f45e477
Add ConversionUtil
JarvisCraft Feb 26, 2019
8d021ad
Add legacy support to WrapperPlayServerEntityTeleport
JarvisCraft Feb 26, 2019
769deb7
Inline local PROTOCOL_MANAGER referencing variable
JarvisCraft Feb 28, 2019
a795242
Remove unneeded import statement
JarvisCraft Feb 28, 2019
d69588b
Add legacy support to WrapperPlayServerSpawnEntityLiving
JarvisCraft Feb 28, 2019
64127de
Add legacy support to WrapperPlayServerAttachEntity
JarvisCraft Feb 28, 2019
52eda0f
Add UnsupportedOperationException for UUID methods in WrapperPlayServ…
JarvisCraft Mar 1, 2019
4115c6b
Add UnsupportedOperationException for UUID methods in WrapperPlayServ…
JarvisCraft Mar 2, 2019
e056d12
Add legacy support to WrapperPlayServerSpawnEntity
JarvisCraft Mar 2, 2019
9ef1891
Merge remote-tracking branch 'origin/legacy-support' into legacy-support
JarvisCraft Mar 2, 2019
32456c8
Add legacy support to Entity Move/Look packets
JarvisCraft Mar 2, 2019
e422166
Don't use wraps for TYPE constant
JarvisCraft Mar 2, 2019
7dd117a
Add legacy support to WrapperPlayServerEntityEquipment
JarvisCraft Mar 4, 2019
bebcce9
Add minimal legacy support to WrapperPlayServerNamedSoundEffect
JarvisCraft Mar 6, 2019
d1209fc
Add legacy support to WrapperPlayServerNamedSoundEffect
JarvisCraft Mar 6, 2019
197fc72
Remove irrelevant comments in WrapperPlayServerNamedSoundEffect
JarvisCraft Mar 6, 2019
1c67a81
Add legacy support to both WrapperPlayServer*SoundEffect
JarvisCraft Mar 6, 2019
e64f98b
Merge pull request #1 from dmulloy2/master
JarvisCraft Dec 14, 2019
5ad982e
Merge pull request #2 from JarvisCraft/master
JarvisCraft Dec 14, 2019
7e588c4
Use non-snapshot version of ProtocolLib
JarvisCraft Dec 14, 2019
68f64a0
Add comment about static final fields and major version check
JarvisCraft Dec 14, 2019
086223f
SPecify latest (Snapshot) version of ProtocolLib
JarvisCraft Dec 22, 2019
ffeb7c5
Merge pull request #3 from JarvisCraft/patch-1
JarvisCraft Dec 22, 2019
a76c8ea
Use release version of ProtocolLin
JarvisCraft Apr 16, 2020
3c48fef
Fix broken packet names
JarvisCraft Apr 16, 2020
175aa32
Merge pull request #4 from dmulloy2/master
JarvisCraft Sep 19, 2020
38fb92e
Merge branch 'legacy-support' into legacy-support-upstream-merge
JarvisCraft Dec 5, 2020
2d29d0f
Merge pull request #5 from JarvisCraft/legacy-support-upstream-merge
JarvisCraft Dec 5, 2020
73730e4
Cleanup text related to legacy-support in AbstractPacket
JarvisCraft Dec 5, 2020
391982b
Make AbstractPacket.handle final
JarvisCraft Dec 5, 2020
96c7b07
Delegate logic of misspelled deprecate entries to correct ones
JarvisCraft Dec 5, 2020
5f9109b
Add BackwardsCompatible and BackwardsCompatibility
JarvisCraft Dec 5, 2020
f90ff27
BackwardsCompat: WrapperPlayClientAbilities
JarvisCraft Dec 5, 2020
a6e0aab
Make Backwards Compatibility annotations easier to write
JarvisCraft Dec 5, 2020
d4434a3
BackwardsCompat: WrapperPlayClientArmAnimation
JarvisCraft Dec 5, 2020
fd6a915
BackwardsCompat: WrapperPlayClientAutoRecipe
JarvisCraft Dec 5, 2020
d2b0a80
BackwardsCompat: WrapperPlayClientBeacon
JarvisCraft Dec 5, 2020
c4329b9
Specify Minecraft 1.8 as minimal backwards compatible
JarvisCraft Dec 5, 2020
b6cdd58
BackwardsCompat: WrapperPlayClientBlockDig
JarvisCraft Dec 5, 2020
34c0256
Replace javadocs-like copyrights with correct ones
JarvisCraft Dec 5, 2020
9a6f11c
BackwardsCompat: WrapperPlayClientBlockPlace
JarvisCraft Dec 5, 2020
b71c40e
BackwardsCompat: WrapperPlayClientBoatMove
JarvisCraft Dec 5, 2020
0660b57
BackwardsCompat: WrapperPlayClientBookEdit
JarvisCraft Dec 5, 2020
6635466
BackwardsCompat: WrapperPlayClientChat
JarvisCraft Dec 5, 2020
f78c954
BackwardsCompat: WrapperPlayClientClientCommand
JarvisCraft Dec 5, 2020
e7aa619
BackwardsCompat: WrapperPlayClientCloseWindow
JarvisCraft Dec 5, 2020
7dfa24e
BackwardsCompat: WrapperPlayClientCustomPayload
JarvisCraft Dec 5, 2020
b6278ac
BackwardsCompat: WrapperPlayClientDifficultyChange
JarvisCraft Dec 5, 2020
3cf8796
BackwardsCompat: WrapperPlayClientDifficultyLock
JarvisCraft Dec 5, 2020
11e1af1
BackwardsCompat: WrapperPlayClientEnchantItem
JarvisCraft Dec 5, 2020
999dffd
BackwardsCompat: WrapperPlayClientEntityAction
JarvisCraft Dec 5, 2020
8b24704
BackwardsCompat: WrapperPlayClientEntityNbtQuery
JarvisCraft Dec 5, 2020
f71ce2b
BackwardsCompat: WrapperPlayClientFlying
JarvisCraft Dec 5, 2020
b4e5ae5
BackwardsCompat: WrapperPlayClientHeldItemSlot
JarvisCraft Dec 5, 2020
e1eff1e
BackwardsCompat: WrapperPlayClientItemName
JarvisCraft Dec 5, 2020
fabd571
BackwardsCompat: WrapperPlayClientKeepAlive
JarvisCraft Dec 5, 2020
bac1807
BackwardsCompat: WrapperPlayClientLook
JarvisCraft Dec 5, 2020
7b89f73
BackwardsCompat: WrapperPlayClientPickItem
JarvisCraft Dec 5, 2020
021d117
BackwardsCompat: WrapperPlayClientPosition
JarvisCraft Dec 5, 2020
2166f6a
BackwardsCompat: WrapperPlayClientPositionLook
JarvisCraft Dec 5, 2020
d1ed6bf
BackwardsCompat: WrapperPlayServerEntity
JarvisCraft Dec 6, 2020
7292887
BackwardsCompat: WrapperPlayServerRelEntityMove
JarvisCraft Dec 6, 2020
1634322
BackwardsCompat: WrapperPlayServerRelEntityLook
JarvisCraft Dec 6, 2020
5875ca1
BackwardsCompat: WrapperPlayServerRelEntityMoveLook
JarvisCraft Dec 6, 2020
20979ac
chore: use more readable version flags
JarvisCraft Dec 6, 2020
eaa3e5d
Fix copyright of ItemFactoryDelegate
JarvisCraft Dec 8, 2020
6fec773
Rework WrapperPlayClientFlying and its relatives to correspond to pac…
JarvisCraft Dec 8, 2020
2d0203b
Add TODOs to WrapperPlayClientRecipeDisplayed
JarvisCraft Dec 8, 2020
63142b8
BackwardsCompat: WrapperPlayClientResourcePackStatus
JarvisCraft Dec 8, 2020
735f1be
BackwardsCompat: WrapperPlayClientSetCommandBlock
JarvisCraft Dec 8, 2020
9869142
BackwardsCompat: WrapperPlayClientSetCommandMinecart
JarvisCraft Dec 8, 2020
6cced59
BackwardsCompat: WrapperPlayClientSetCreativeSlot
JarvisCraft Dec 8, 2020
0aa9a1f
BackwardsCompat: WrapperPlayClientSetJigsaw
JarvisCraft Dec 8, 2020
043ec75
BackwardsCompat: WrapperPlayClientSettings
JarvisCraft Dec 8, 2020
c182fd6
BackwardsCompat: WrapperPlayClientSpectate
JarvisCraft Dec 8, 2020
e125c76
BackwardsCompat: WrapperPlayClientSteerVehicle
JarvisCraft Dec 8, 2020
24286c9
BackwardsCompat: WrapperPlayClientStruct
JarvisCraft Dec 8, 2020
09db7d2
Remove WrapperPlayClientStructureBlock duplicating WrapperPlayClientS…
JarvisCraft Dec 8, 2020
1ef7c39
BackwardsCompat: WrapperPlayClientTabComplete
JarvisCraft Dec 8, 2020
35fab07
BackwardsCompat: WrapperPlayClientTeleportAccept
JarvisCraft Dec 8, 2020
b0dec70
BackwardsCompat: WrapperPlayClientTileNbtQuery
JarvisCraft Dec 8, 2020
7d6826a
BackwardsCompat: WrapperPlayClientTradeSelect
JarvisCraft Dec 8, 2020
c98a2dc
BackwardsCompat: WrapperPlayClientTransaction
JarvisCraft Dec 8, 2020
db05193
BackwardsCompat: WrapperPlayClientUpdateSign
JarvisCraft Dec 8, 2020
b53f531
BackwardsCompat: WrapperPlayClientUseEntity
JarvisCraft Dec 8, 2020
7b2d152
Resolve issues with backwards compatibility of WrapperPlayClientArmAn…
JarvisCraft Dec 8, 2020
9b4eed8
BackwardsCompat: WrapperPlayClientUseItem
JarvisCraft Dec 9, 2020
9ee8284
BackwardsCompat: WrapperPlayClientVehicleMove
JarvisCraft Dec 9, 2020
9417e3d
BackwardsCompat: WrapperPlayClientWindowClick
JarvisCraft Dec 9, 2020
da93b1a
Cleanup TestWrappers
JarvisCraft Dec 9, 2020
f8a92c7
Reformat all WrapperPlayClient* packets
JarvisCraft Dec 9, 2020
16e91d1
BackwardsCompat: WrapperPlayServerAbilities
JarvisCraft Dec 9, 2020
1b8a2b0
build(dep): add org.jetbrains:annotations
JarvisCraft Dec 9, 2020
c024d6e
test: temporary disable tests as they are currently incompatible with…
JarvisCraft Jan 20, 2021
ec3eb66
build(dep): update ProtocolLib to 4.6.0-SNAPSHOT
JarvisCraft Jan 20, 2021
8f446c3
BackwardsCompat: WrapperPlayServerEntityEquipment
JarvisCraft Jan 20, 2021
f88320f
BackwardsCompat: WrapperPlayServerSpawnEntityExperienceOrb
JarvisCraft Jan 20, 2021
5617f1d
BackwardsCompat: WrapperPlayServerSpawnEntity
JarvisCraft Jan 20, 2021
7502272
feat: add VersionUtil and EntityUtil
JarvisCraft Jan 20, 2021
eb2b1cc
fix: replace incorrect usages of MAJOR_VERSION instead of MAJOR_VERSION
JarvisCraft Jan 20, 2021
a458ee2
fix: use EntityUtil in WrapperPlayServerSpawnEntity
JarvisCraft Jan 20, 2021
67b119a
chore: initialize PROTOCOL_MANAGER lazily
JarvisCraft Jan 20, 2021
b3a9917
BackwardsCompat: WrapperPlayServerSpawnEntityLiving
JarvisCraft Jan 20, 2021
974688e
chore: bump version to 1.16.4-R0.1-SNAPSHOT
JarvisCraft Jan 20, 2021
9ffc1be
fix: use correct Regex groups in VersionUtil
JarvisCraft Jan 20, 2021
f92819c
fix: replace NMS imports in tests with the correct ones
JarvisCraft Jan 20, 2021
e173e4d
fix: resolve nullability issues in EntityUtil
JarvisCraft Jan 20, 2021
66ce68d
chore: respect nulls in WrapperPlayServerEntityEquipment
JarvisCraft Jan 20, 2021
330d078
build: temporarily use personal GitHub Package Registry as a Maven re…
JarvisCraft Jan 22, 2021
338cad0
build: temporarily use personal GitHub Package Registry as a Maven re…
JarvisCraft Jan 22, 2021
88ecbac
Merge remote-tracking branch 'origin/legacy-support' into legacy-support
JarvisCraft Feb 10, 2021
8230b30
feat: implement AbstractPacket#toString()
JarvisCraft Feb 10, 2021
d0f8104
ci: remove redundant settings file
JarvisCraft Feb 10, 2021
5921b6a
fix: do not write both shorts and integers
BlcDragon Nov 10, 2021
11589a1
Merge pull request #7 from BlcDragon/patch-2
JarvisCraft Nov 10, 2021
0d21b14
build: bump ProtocolLib version to 4.7.0
BlcDragon Nov 10, 2021
273265d
Merge pull request #8 from BlcDragon/legacy-support
JarvisCraft Nov 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github-actions/maven/deployment.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>sonatype-ossrh</id>
<username>${env.SONATYPE_OSSRH_DEPLOYER}</username>
<password>${env.SONATYPE_OSSRH_TOKEN}</password>
</server>
</servers>
</settings>
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy

on: [ push, workflow_dispatch ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Deploy
env:
SONATYPE_OSSRH_DEPLOYER: ${{ secrets.SONATYPE_OSSRH_DEPLOYER }}
SONATYPE_OSSRH_TOKEN: ${{ secrets.SONATYPE_OSSRH_TOKEN }}
run: mvn -B -f ./PacketWrapper/pom.xml deploy -s ./.github-actions/maven/deployment.xml

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: plugin
path: PacketWrapper/target/PacketWrapper.jar
26 changes: 15 additions & 11 deletions PacketWrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.comphenix.packetwrapper</groupId>
<artifactId>PacketWrapper</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<groupId>ru.progrm-jarvis.minecraft</groupId>
<artifactId>packet-wrapper</artifactId>
<version>1.16.4-SNAPSHOT</version>

<name>PacketWrapper</name>

Expand All @@ -27,28 +27,32 @@
</repositories>

<distributionManagement>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/content/repositories/snapshots/</url>
<id>sonatype-ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>${project.version}</version>
<version>1.16.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.5.1-SNAPSHOT</version>
<version>4.7.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>20.1.0</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- Testing dependencies -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand All @@ -18,18 +18,30 @@
*/
package com.comphenix.packetwrapper;

import java.lang.reflect.InvocationTargetException;

import org.bukkit.entity.Player;

import com.comphenix.packetwrapper.util.VersionUtil;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.PacketContainer;
import com.google.common.base.Objects;
import org.bukkit.entity.Player;

import java.lang.reflect.InvocationTargetException;

public abstract class AbstractPacket {
// The packet we will be modifying
protected PacketContainer handle;
protected final PacketContainer handle;
/*
* Note that the following primitive fields are all `static final`
* so that JIT can inline them and even perform static-folding
*/
protected static final int MAJOR_VERSION = VersionUtil.getMajorVersion();
protected static final int MINOR_VERSION = VersionUtil.getMinorVersion();
protected static final int VERSION_BUILD = VersionUtil.getBuildVersion();

static {
if (MAJOR_VERSION != 1) throw new Error("Major Minecraft version " + MAJOR_VERSION + " is unsupported");
}

/**
* Constructs a new strongly typed wrapper for the given packet.
Expand Down Expand Up @@ -57,6 +69,10 @@ public PacketContainer getHandle() {
return handle;
}

protected static ProtocolManager protocolManager() {
return ProtocolManagerHolder.PROTOCOL_MANAGER;
}

/**
* Send the current packet to the given receiver.
*
Expand All @@ -65,8 +81,7 @@ public PacketContainer getHandle() {
*/
public void sendPacket(Player receiver) {
try {
ProtocolLibrary.getProtocolManager().sendServerPacket(receiver,
getHandle());
protocolManager().sendServerPacket(receiver, getHandle());
} catch (InvocationTargetException e) {
throw new RuntimeException("Cannot send packet.", e);
}
Expand All @@ -76,7 +91,7 @@ public void sendPacket(Player receiver) {
* Send the current packet to all online players.
*/
public void broadcastPacket() {
ProtocolLibrary.getProtocolManager().broadcastServerPacket(getHandle());
protocolManager().broadcastServerPacket(getHandle());
}

/**
Expand All @@ -89,12 +104,7 @@ public void broadcastPacket() {
*/
@Deprecated
public void recievePacket(Player sender) {
try {
ProtocolLibrary.getProtocolManager().recieveClientPacket(sender,
getHandle());
} catch (Exception e) {
throw new RuntimeException("Cannot recieve packet.", e);
}
receivePacket(sender);
}

/**
Expand All @@ -105,10 +115,18 @@ public void recievePacket(Player sender) {
*/
public void receivePacket(Player sender) {
try {
ProtocolLibrary.getProtocolManager().recieveClientPacket(sender,
getHandle());
protocolManager().recieveClientPacket(sender, getHandle());
} catch (Exception e) {
throw new RuntimeException("Cannot receive packet.", e);
}
}

private static final class ProtocolManagerHolder {
private static final ProtocolManager PROTOCOL_MANAGER = ProtocolLibrary.getProtocolManager();
}

@Override
public String toString() {
return getClass().getName() + "{handle=" + handle + '}';
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand Down Expand Up @@ -187,21 +187,22 @@ public void processBiomeArray(Location origin, byte[] data,
protected static final int CHUNK_SEGMENTS = 16;
protected static final int NIBBLES_REQUIRED = 4;

public static final int BLOCK_ID_LENGTH = 4096;

/**Misspelled.
* @see #BLOCK_ID_LENGTH
*/
@Deprecated
public static final int BLOCK_ID_LENGHT = 4096;
public static final int BLOCK_ID_LENGHT = BLOCK_ID_LENGTH;

public static final int BLOCK_ID_LENGTH = 4096;
public static final int DATA_LENGTH = 2048;

/**Misspelled.
* @see #DATA_LENGTH
*/
@Deprecated
public static final int DATA_LENGHT = 2048;
public static final int DATA_LENGHT = DATA_LENGTH;

public static final int DATA_LENGTH = 2048;
public static final int BIOME_ARRAY_LENGTH = 256;

private int chunkX;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.comphenix.packetwrapper;

/**
* Faster conversions based on those used by Minecraft server which are required for packet dada conversions.
*/
public final class ConversionUtil {

private ConversionUtil() {
throw new IllegalStateException("No instances of ConversionUtil for you");
}

/**
* Performs a fast flooring operation on a double.
*
* @param number number to floor to int
* @return number floored
*/
public static int floor(double number) {
final int intNumber;
return number < (double) (intNumber = (int) number) ? intNumber - 1 : intNumber;
}

/**
* Performs a fast flooring operation on a float.
*
* @param number number to floor to int
* @return number floored
*/
public static int floor(float number) {
final int intNumber;
return number < (float) (intNumber = (int) number) ? intNumber - 1 : intNumber;
}

/**
* Fits the specified number between the given bounds.
*
* @param number number to fit between the other two
* @param min minimal allowed number
* @param max maximal allowed number
* @return number fitting between the specified ones
*/
public static double fitBetween(final double number, final double min, final double max) {
final int intNumber;
return number < (double) (intNumber = (int) number) ? intNumber - 1 : intNumber;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand All @@ -23,8 +23,7 @@
import com.comphenix.protocol.events.PacketContainer;

public class WrapperHandshakingClientSetProtocol extends AbstractPacket {
public static final PacketType TYPE =
PacketType.Handshake.Client.SET_PROTOCOL;
public static final PacketType TYPE = PacketType.Handshake.Client.SET_PROTOCOL;

public WrapperHandshakingClientSetProtocol() {
super(new PacketContainer(TYPE), TYPE);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
/**
* This file is part of PacketWrapper.
* Copyright (C) 2012-2015 Kristian S. Strangeland
* Copyright (C) 2015 dmulloy2
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
*
* PacketWrapper is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PacketWrapper is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with PacketWrapper. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.comphenix.packetwrapper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand All @@ -22,8 +22,7 @@
import com.comphenix.protocol.events.PacketContainer;

public class WrapperLoginClientEncryptionBegin extends AbstractPacket {
public static final PacketType TYPE =
PacketType.Login.Client.ENCRYPTION_BEGIN;
public static final PacketType TYPE = PacketType.Login.Client.ENCRYPTION_BEGIN;

public WrapperLoginClientEncryptionBegin() {
super(new PacketContainer(TYPE), TYPE);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* PacketWrapper - ProtocolLib wrappers for Minecraft packets
* Copyright (C) dmulloy2 <http://dmulloy2.net>
* Copyright (C) Kristian S. Strangeland
Expand Down
Loading