Class IntelligentMaterialAnimator
java.lang.Object
io.github.rysefoxx.inventory.plugin.animator.IntelligentMaterialAnimator
- Since:
- 4/12/2022
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidanimate()This starts the animation for the item.static @NotNull IntelligentMaterialAnimator.Builderbuilder(@NotNull org.bukkit.plugin.Plugin plugin) @Nullable ObjectReturns the identifier of this object, or null if it has none.@NotNull org.bukkit.scheduler.BukkitTaskgetTask()This function returns the task that is currently running.booleanstop()This stops the animation for the item.
-
Constructor Details
-
IntelligentMaterialAnimator
public IntelligentMaterialAnimator()
-
-
Method Details
-
builder
@Contract("_ -> new") @NotNull public static @NotNull IntelligentMaterialAnimator.Builder builder(@NotNull @NotNull org.bukkit.plugin.Plugin plugin) -
animate
public void animate()This starts the animation for the item. -
stop
public boolean stop()This stops the animation for the item.- Returns:
- true if the animation was stopped.
-
getTask
@Internal @NotNull public @NotNull org.bukkit.scheduler.BukkitTask getTask()This function returns the task that is currently running.- Returns:
- The task that is being run.
-
getIdentifier
Returns the identifier of this object, or null if it has none.- Returns:
- The identifier of the object.
-