Made certain classes private. No need to expose them to the API.

This commit is contained in:
Kristian S. Stangeland 2012-09-16 03:18:58 +02:00
parent 62d9afd1d1
commit 286e1159e9
3 changed files with 8 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import net.minecraft.server.Packet;
*
* @author Kristian
*/
public class NetworkFieldInjector extends PlayerInjector {
class NetworkFieldInjector extends PlayerInjector {
/**
* Marker interface that indicates a packet is fake and should not be processed.

View File

@ -16,7 +16,7 @@ import org.bukkit.entity.Player;
*
* @author Kristian
*/
public class NetworkObjectInjector extends PlayerInjector {
class NetworkObjectInjector extends PlayerInjector {
public NetworkObjectInjector(Player player, PacketFilterManager manager, Set<Integer> sendingFilters) throws IllegalAccessException {
super(player, manager, sendingFilters);
}

View File

@ -63,6 +63,10 @@ public final class PacketFilterManager implements ProtocolManager {
*/
NETWORK_HANDLER_FIELDS,
/**
* Override the network handler object itself.
*/
NETWORK_MANAGER_OBJECT
}
// Create a concurrent set
@ -352,6 +356,8 @@ public final class PacketFilterManager implements ProtocolManager {
switch (playerHook) {
case NETWORK_HANDLER_FIELDS:
return new NetworkFieldInjector(player, this, sendingFilters);
case NETWORK_MANAGER_OBJECT:
return new NetworkObjectInjector(player, this, sendingFilters);
}
throw new IllegalArgumentException("Cannot construct a player injector.");