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