rotate
open fun rotate(@NotNull rotation: @NotNull ModelRotation, @NotNull bundler: @NotNull PacketBundler): Boolean
Rotates the model to a new orientation and bundles transformation packets.
PacketBundler bundler = pipeline.createBundler();
if (pipeline.rotate(newRotation, bundler)) {
pipeline.forEachAllPlayer(bundler::send);
}
Content copied to clipboard
Return
true if the rotation changed and packets were updated, false otherwise
Since
1.15.2
Parameters
rotation
the new model rotation
bundler
the packet bundler to receive rotation packets
Throws
if rotation or bundler is null