24package com.dreamfirestudios.dreamcore.DreamArmorStand;
26import org.bukkit.entity.ArmorStand;
27import java.util.function.Consumer;
48 private final Consumer<ArmorStand> frameAction;
60 if (frameAction ==
null)
throw new IllegalArgumentException(
"Frame action cannot be null");
61 this.frameAction = frameAction;
69 frameAction.accept(armorStand);
Represents a single frame of an armor stand animation.
void displayFrame(ArmorStand armorStand)
Displays this animation frame by applying its action to the specified armor stand.
ArmorStandAnimatorData(Consumer< ArmorStand > frameAction)
Initializes a new instance of the ArmorStandAnimatorData class.