Ensure that the dummy objects are all package private.

This commit is contained in:
Kristian S. Stangeland 2013-02-05 23:28:11 +01:00
parent cf52d6ddb4
commit 28b213a419
2 changed files with 11 additions and 1 deletions

View File

@ -9,7 +9,12 @@ import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent; import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.injector.packet.PacketInjector; import com.comphenix.protocol.injector.packet.PacketInjector;
public class DummyPacketInjector implements PacketInjector { /**
* Dummy packet injector that simply delegates to its parent Spigot packet injector or receiving filters.
*
* @author Kristian
*/
class DummyPacketInjector implements PacketInjector {
private SpigotPacketInjector injector; private SpigotPacketInjector injector;
private IntegerSet reveivedFilters; private IntegerSet reveivedFilters;

View File

@ -15,6 +15,11 @@ import com.comphenix.protocol.injector.GamePhase;
import com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks; import com.comphenix.protocol.injector.PacketFilterManager.PlayerInjectHooks;
import com.comphenix.protocol.injector.player.PlayerInjectionHandler; import com.comphenix.protocol.injector.player.PlayerInjectionHandler;
/**
* Dummy player handler that simply delegates to its parent Spigot packet injector.
*
* @author Kristian
*/
class DummyPlayerHandler implements PlayerInjectionHandler { class DummyPlayerHandler implements PlayerInjectionHandler {
private SpigotPacketInjector injector; private SpigotPacketInjector injector;
private IntegerSet sendingFilters; private IntegerSet sendingFilters;