Class RenderPipeline
java.lang.Object
kr.toxicity.model.api.data.renderer.RenderPipeline
- All Implemented Interfaces:
BoneEventHandler
A pipeline class of each tracker.
-
Constructor Summary
ConstructorsConstructorDescriptionRenderPipeline(@NotNull ModelRenderer parent, @NotNull RenderSource<?> source, @NotNull Map<BoneName, RenderedBone> boneMap) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPositionModifier(@NotNull BonePredicate predicate, @NotNull Function<org.joml.Vector3f, org.joml.Vector3f> mapper) booleanaddRotationModifier(@NotNull BonePredicate predicate, @NotNull Function<org.joml.Quaternionf, org.joml.Quaternionf> mapper) @NotNull Stream<org.bukkit.entity.Player> booleananimate(@NotNull Predicate<RenderedBone> filter, @NotNull BlueprintAnimation animation, @NotNull AnimationModifier modifier, @NotNull AnimationEventHandler eventHandler) @Nullable RenderedBone@NotNull @Unmodifiable Collection<RenderedBone> bones()@Nullable PlayerChannelHandler@NotNull PacketBundler@NotNull PacketBundler@NotNull PacketBundlervoiddefaultPosition(@NotNull Supplier<org.joml.Vector3f> movement) voiddespawn()voiddespawnPacketHandler(@NotNull Consumer<PacketBundler> despawnPacketHandler) @NotNull BoneEventDispatcher@NotNull Stream<org.bukkit.entity.Player> filteredPlayer(@NotNull Predicate<org.bukkit.entity.Player> predicate) <T> TfirstNotNull(@NotNull Function<RenderedBone, T> mapper) booleanhide(@NotNull org.bukkit.entity.Player player) voidhideFilter(@NotNull Predicate<org.bukkit.entity.Player> filter) voidhidePacketHandler(@NotNull Consumer<PacketBundler> despawnPacketHandler) hitboxes()booleanisHide(@NotNull org.bukkit.entity.Player player) booleanvoiditerateTree(@NotNull Consumer<RenderedBone> consumer) booleanmatchTree(@NotNull Predicate<RenderedBone> predicate) booleanmatchTree(@NotNull AnimationPredicate predicate, BiPredicate<RenderedBone, AnimationPredicate> mapper) booleanmatchTree(@NotNull BonePredicate predicate, BiPredicate<RenderedBone, BonePredicate> mapper) @NotNull Stringname()@NotNull Stream<org.bukkit.entity.Player> intbooleanremove(@NotNull org.bukkit.entity.Player player) booleanreplace(@NotNull Predicate<RenderedBone> filter, @NotNull String target, @NotNull BlueprintAnimation animation, @NotNull AnimationModifier modifier) booleanrotate(@NotNull ModelRotation rotation, @NotNull PacketBundler bundler) @Nullable RunningAnimationvoidscale(@NotNull FloatSupplier scale) booleanshow(@NotNull org.bukkit.entity.Player player) voidshowPacketHandler(@NotNull Consumer<PacketBundler> despawnPacketHandler) booleanspawn(@NotNull org.bukkit.entity.Player player, @NotNull PacketBundler bundler) voidspawnPacketHandler(@NotNull Consumer<PacketBundler> spawnPacketHandler) booleanstopAnimation(@NotNull Predicate<RenderedBone> filter, @NotNull String target, @Nullable org.bukkit.entity.Player player) booleantick(@NotNull UUID uuid, @NotNull PacketBundler bundler) booleantick(@NotNull PacketBundler bundler) @NotNull Stream<org.bukkit.entity.Player> voidviewFilter(@NotNull Predicate<org.bukkit.entity.Player> filter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kr.toxicity.model.api.bone.BoneEventHandler
extend
-
Constructor Details
-
RenderPipeline
public RenderPipeline(@NotNull @NotNull ModelRenderer parent, @NotNull @NotNull RenderSource<?> source, @NotNull @NotNull Map<BoneName, RenderedBone> boneMap)
-
-
Method Details
-
createBundler
-
channel
-
createLazyBundler
-
createParallelBundler
-
eventDispatcher
- Specified by:
eventDispatcherin interfaceBoneEventHandler
-
viewFilter
-
hideFilter
-
spawnPacketHandler
-
despawnPacketHandler
-
hidePacketHandler
-
showPacketHandler
-
isSpawned
-
runningAnimation
-
name
-
despawn
public void despawn() -
rotate
public boolean rotate(@NotNull @NotNull ModelRotation rotation, @NotNull @NotNull PacketBundler bundler) -
tick
-
tick
-
defaultPosition
-
scale
-
addRotationModifier
public boolean addRotationModifier(@NotNull @NotNull BonePredicate predicate, @NotNull @NotNull Function<org.joml.Quaternionf, org.joml.Quaternionf> mapper) -
addPositionModifier
public boolean addPositionModifier(@NotNull @NotNull BonePredicate predicate, @NotNull @NotNull Function<org.joml.Vector3f, org.joml.Vector3f> mapper) -
bones
-
hitboxes
-
boneOf
-
animate
@Internal public boolean animate(@NotNull @NotNull Predicate<RenderedBone> filter, @NotNull @NotNull BlueprintAnimation animation, @NotNull @NotNull AnimationModifier modifier, @NotNull @NotNull AnimationEventHandler eventHandler) -
replace
@Internal public boolean replace(@NotNull @NotNull Predicate<RenderedBone> filter, @NotNull @NotNull String target, @NotNull @NotNull BlueprintAnimation animation, @NotNull @NotNull AnimationModifier modifier) -
stopAnimation
@Internal public boolean stopAnimation(@NotNull @NotNull Predicate<RenderedBone> filter, @NotNull @NotNull String target, @Nullable @Nullable org.bukkit.entity.Player player) -
spawn
@Internal public boolean spawn(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull PacketBundler bundler) -
remove
@Internal public boolean remove(@NotNull @NotNull org.bukkit.entity.Player player) -
matchTree
public boolean matchTree(@NotNull @NotNull BonePredicate predicate, BiPredicate<RenderedBone, BonePredicate> mapper) -
matchTree
public boolean matchTree(@NotNull @NotNull AnimationPredicate predicate, BiPredicate<RenderedBone, AnimationPredicate> mapper) -
matchTree
-
iterateTree
-
firstNotNull
-
playerCount
public int playerCount() -
allPlayer
-
nonHidePlayer
-
viewedPlayer
-
filteredPlayer
-
hide
public boolean hide(@NotNull @NotNull org.bukkit.entity.Player player) -
isHide
public boolean isHide(@NotNull @NotNull org.bukkit.entity.Player player) -
show
public boolean show(@NotNull @NotNull org.bukkit.entity.Player player)
-