- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
@Override public boolean checkTrigger(GameEvent event, Game game) { if (event.getSourceId().equals(this.getSourceId())) { StackObject spell = game.getStack().getStackObject(this.getSourceId()); if (spell instanceof Spell) { for (Effect effect : this.getEffects()) { effect.setValue("GravestormSpell", spell); effect.setValue("GravestormSpellRef", new MageObjectReference(spell.getId(), game)); } return true; } } return false; }