addPositionModifier

open fun addPositionModifier(@NotNull predicate: @NotNull BonePredicate, @NotNull mapper: @NotNull (Vector3f) -> Vector3f): Boolean

Adds a position modifier to bones matching the given predicate.


pipeline.addPositionModifier(BonePredicate.name("root"), pos -> pos.add(0, 0.5f, 0));

Return

true if any matching bones were modified, false otherwise

Since

1.15.2

Parameters

predicate

the predicate to select bones

mapper

the position mapping function

Throws

if predicate or mapper is null