1 2 3 package org.catacomb.druid.blocks; 4 5 import org.catacomb.druid.build.Context; 6 import org.catacomb.druid.build.GUIPath; 7 import org.catacomb.druid.gui.base.DruAbleEffect; 8 import org.catacomb.druid.gui.edit.Effect; 9 10 11 public class AbleEffect extends BaseEffect { 12 13 public boolean when; 14 15 public String state; 16 17 public String target; 18 19 20 21 public Effect realize(Context ctx, GUIPath gpath) { 22 Effect eff = new DruAbleEffect(target, when, state); 23 24 ctx.getMarketplace().addViewer("TargetStore", eff, "access"); 25 26 return eff; 27 } 28 29 30 31 }