private void tick() {
if(this.soundPlayer != null) {
SoundPlayer var1 = this.soundPlayer;
SoundManager var2 = this.sound;
if(System.currentTimeMillis() > var2.lastMusic && var2.playMusic(var1, "calm")) {
var2.lastMusic = System.currentTimeMillis() + (long)var2.random.nextInt(900000) + 300000L;
}
}
this.gamemode.spawnMob();