@Override public void hide() { parentStack = null; if (animation != null) { animation.removeTarget(this); } }
public void show(@Nonnull ItemStack stack) { //noinspection AssignmentToCollectionOrArrayFieldFromParameter parentStack = stack; if (animation != null) { animation.addTarget(this, true); } }