Package kr.toxicity.model.api.animation
Class AnimationModifier.Builder
java.lang.Object
kr.toxicity.model.api.animation.AnimationModifier.Builder
- Enclosing class:
AnimationModifier
Builder
-
Method Summary
Modifier and TypeMethodDescription@NotNull AnimationModifierbuild()Builds animation modifier@NotNull AnimationModifier.Builderend(int end) Sets the lerp-out time of this modifier@NotNull AnimationModifier.BuilderSets the override flag of this modifier@NotNull AnimationModifier.Builderplayer(@Nullable org.bukkit.entity.Player player) Sets the target player of this modifier@NotNull AnimationModifier.Builderpredicate(@NotNull BooleanSupplier predicate) Sets the predicate of this modifier@NotNull AnimationModifier.Builderspeed(@NotNull FloatSupplier speed) Sets the speed modifier of this modifier@NotNull AnimationModifier.Builderstart(int start) Sets the lerp-in time of this modifier@NotNull AnimationModifier.Buildertype(AnimationIterator.Type type) Sets the animation type of this modifier
-
Method Details
-
predicate
@NotNull public @NotNull AnimationModifier.Builder predicate(@NotNull @NotNull BooleanSupplier predicate) Sets the predicate of this modifier- Parameters:
predicate- predicate- Returns:
- self
-
start
Sets the lerp-in time of this modifier- Parameters:
start- lerp-in time- Returns:
- self
-
end
Sets the lerp-out time of this modifier- Parameters:
end- lerp-out time- Returns:
- self
-
type
Sets the animation type of this modifier- Parameters:
type- animation type- Returns:
- self
-
speed
Sets the speed modifier of this modifier- Parameters:
speed- speed modifier- Returns:
- self
-
override
Sets the override flag of this modifier- Parameters:
override- override flag- Returns:
- self
-
player
@NotNull public @NotNull AnimationModifier.Builder player(@Nullable @Nullable org.bukkit.entity.Player player) Sets the target player of this modifier- Parameters:
player- target player- Returns:
- self
-
build
Builds animation modifier- Returns:
- build
-