Archiviert
13
0

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

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-09-16 03:18:58 +02:00
Ursprung 62d9afd1d1
Commit 286e1159e9
3 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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.

Datei anzeigen

@ -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);
}

Datei anzeigen

@ -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.");