From 30bff505c4315b3d74dcdacfaf20e11bbedc179c Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Tue, 2 Dec 2014 16:11:13 -0500 Subject: [PATCH] Fix some spacing --- .../com/comphenix/protocol/events/PacketContainer.java | 5 +++-- .../java/com/comphenix/protocol/wrappers/EnumWrappers.java | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java index bd42957d..662d9a6f 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -77,10 +77,10 @@ import com.comphenix.protocol.wrappers.EnumWrappers.CombatEventType; import com.comphenix.protocol.wrappers.EnumWrappers.Difficulty; import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; import com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode; +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; import com.comphenix.protocol.wrappers.EnumWrappers.ResourcePackStatus; import com.comphenix.protocol.wrappers.EnumWrappers.TitleAction; import com.comphenix.protocol.wrappers.EnumWrappers.WorldBorderAction; -import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; import com.comphenix.protocol.wrappers.WrappedAttribute; import com.comphenix.protocol.wrappers.WrappedChatComponent; import com.comphenix.protocol.wrappers.WrappedDataWatcher; @@ -711,9 +711,10 @@ public class PacketContainer implements Serializable { */ public StructureModifier getPlayerInfoAction() { // Convert to and from the wrapper - return structureModifier.withType( + return structureModifier. withType( EnumWrappers.getPlayerInfoActionClass(), EnumWrappers.getPlayerInfoActionConverter()); } + /** * Retrieve a read/write structure for the TitleAction enum in 1.8. * @return A modifier for TitleAction enum fields. diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java index f6868536..78992559 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java @@ -1,14 +1,15 @@ package com.comphenix.protocol.wrappers; +import java.util.Map; + +import org.bukkit.GameMode; + import com.comphenix.protocol.PacketType; import com.comphenix.protocol.PacketType.Protocol; import com.comphenix.protocol.reflect.EquivalentConverter; import com.comphenix.protocol.reflect.FuzzyReflection; import com.comphenix.protocol.utility.MinecraftReflection; import com.google.common.collect.Maps; -import org.bukkit.GameMode; - -import java.util.Map; /** * Represents a generic enum converter.