/** * Adds an reaction to this container. * * @param reaction The reaction to be added to this container */ @Override public void addReaction(IReaction reaction) { if (reactionCount + 1 >= reactions.length) growReactionArray(); reactions[reactionCount] = reaction; reactionCount++; notifyChanged(); }
/** * Adds an reaction to this container. * * @param reaction The reaction to be added to this container */ @Override public void addReaction(IReaction reaction) { if (reactionCount + 1 >= reactions.length) growReactionArray(); reactions[reactionCount] = reaction; reactionCount++; notifyChanged(); }