Package foundry.veil.api.client.registry
Class PoseRegistry
java.lang.Object
foundry.veil.api.client.registry.PoseRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ExtendedPoseAn example pose registered by Veil.static ExtendedPosestatic Map<Predicate<net.minecraft.world.item.Item>, ExtendedPose> static ExtendedPoseAn example pose registered by Veil. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedPoseregisterPose(Predicate<net.minecraft.world.item.Item> itemPredicate, ExtendedPose pose) Add aExtendedPoseto the registry.static ExtendedPoseregisterPose(net.minecraft.world.item.Item item, ExtendedPose pose) Add aExtendedPoseto the registry.
-
Field Details
-
poses
-
BOW
An example pose registered by Veil. This pose is applied when the player is using a bow. It slowly raises the arms as the bow is drawn. -
CROSSBOW
-
TRIDENT
An example pose registered by Veil. This pose is applied when the player is using a trident. It captures some model data and uses it to pose the body.
-
-
Constructor Details
-
PoseRegistry
public PoseRegistry()
-
-
Method Details
-
registerPose
Add aExtendedPoseto the registry.- Parameters:
item- The item that triggers the pose.pose- The pose.Create an
ExtendedPose, either using an anonymous class or a separate class. You are given aPoseDataobject which contains various state data of the model.
-
registerPose
public static ExtendedPose registerPose(Predicate<net.minecraft.world.item.Item> itemPredicate, ExtendedPose pose) Add aExtendedPoseto the registry.- Parameters:
itemPredicate- A predicate that determines if the pose should be applied to the item.pose- The pose.Create an
ExtendedPose, either using an anonymous class or a separate class. You are given aPoseDataobject which contains various state data of the model.
-