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.BuildermergeNotDefault(@NotNull AnimationModifier modifier) Merges non-default value with other modifier@NotNull AnimationModifier.BuilderSets the override flag of this modifier@NotNull AnimationModifier.Builderplayer(@Nullable PlatformPlayer player) Sets the target player of this modifier@NotNull AnimationModifier.Builderpredicate(@Nullable BooleanSupplier predicate) Sets the predicate of this modifier@NotNull AnimationModifier.Builderpriority(int priority) Sets the priority of this modifier@NotNull AnimationModifier.Builderspeed(float speed) Sets the speed modifier of this modifier@NotNull AnimationModifier.Builderspeed(@Nullable 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(@Nullable @Nullable 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
-
priority
Sets the priority of this modifier- Parameters:
priority- priority- 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- 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 PlatformPlayer player) Sets the target player of this modifier- Parameters:
player- target player- Returns:
- self
-
mergeNotDefault
@NotNull public @NotNull AnimationModifier.Builder mergeNotDefault(@NotNull @NotNull AnimationModifier modifier) Merges non-default value with other modifier- Parameters:
modifier- modifier- Returns:
- self
-
build
-