@Override
public void onPacketData(int packetID, DataInputStream data, EntityPlayer player) {
try {
PacketUpdate packetU;
switch (packetID) {
// CLIENT
case PacketIds.PROP_SEND_FILTER_SET:
PacketNBT packetN = new PacketNBT();
packetN.readData(data);
onFilterSet(packetN);
break;
// SERVER
case PacketIds.PROP_REQUEST_FILTER_SET:
PacketCoordinates packetC = new PacketCoordinates();
packetC.readData(data);
onRequestFilterSet(player, packetC);
break;
case PacketIds.PROP_SEND_FILTER_CHANGE_TYPE:
packetU = new PacketUpdate();
packetU.readData(data);
onTypeFilterChange(player, packetU);
break;
case PacketIds.PROP_SEND_FILTER_CHANGE_GENOME:
packetU = new PacketUpdate();
packetU.readData(data);
onGenomeFilterChange(player, packetU);
break;
}
} catch (Exception ex) {