155156157158159160161162163164165
byte effectId = data.readByte(); if (effectId < 0) return; Effect effect = Effect.values()[effectId]; switch (effect) { case TELEPORT: doTeleport(data); break; case FIRESPARK: