Pre-release

@kerbybit kerbybit released this Jul 9, 2018 · 60 commits to master since this release

Assets 3

Potion Effect

Potions effects now have their own wrapper that is much more in depth than what getting the player's active potion effects used to be. This means that Player.getActivePotionEffects now returns a list of PotionEffects instead of a list of Strings

var myDisplay = new Display();

register("tick", function() {
     myDisplay.clearLines();
     Player.getActivePotionEffects().forEach(function(effect) {
          myDisplay.addLine(
               effect.getName() + " " + 
               effect.getAmplifier() + " " + 
               effect.getDuration()
          );
     }
});

PotionEffect docs

Miscellaneous

  • Added ChatLib.actionBar(String/Message/TextComponent)
  • Added Message.actionBar() and TextComponent.actionBar()
  • Added KeyBind.getKeyCode and KeyBind.setState(boolean)
  • Fixed the config getting initializing too late and causing a rare crash
  • Added Message.toString() and TextComponent.toString() for easier debugging
  • Fixed sound triggers