/** * Gets a list of parameters used for the creation of a mob spawn message * * @param controller - The controller controller to obtain the parameters from * @return a list of parameters */ public List<Parameter<?>> getSpawnParameters(Controller controller) { List<Parameter<?>> parameters = new ArrayList<Parameter<?>>(1); if (controller instanceof Creature) { Creature creature = (Creature) controller; parameters.add( new Parameter<Integer>(Parameter.TYPE_INT, 12, (int) creature.getTimeUntilAdult() * -1)); } return parameters; }
@Override public void onAttached() { setHealth(10, HealthChangeReason.SPAWN); setMaxHealth(10); super.onAttached(); }
@Override public void onAttached() { super.onAttached(); getParent().setData(ControllerType.KEY, ControllerType.SNOWGOLEM.id); }