Class DeployablesUtils
java.lang.Object
com.hypixel.hytale.builtin.deployables.DeployablesUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplayAnimation(Store<EntityStore> store, int networkId, Ref<EntityStore> ref, DeployableConfig config, AnimationSlot animationSlot, String itemAnimationsId, String animationId) static voidplaySoundEventsAtEntity(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor, int localIndex, int worldIndex, Vector3d pos) (package private) static voidpopulateStats(DeployableConfig config, EntityStatMap entityStatMapComponent) static Ref<EntityStore> spawnDeployable(CommandBuffer<EntityStore> commandBuffer, Store<EntityStore> store, DeployableConfig config, Ref<EntityStore> deployerRef, Vector3f position, Vector3f rotation, String spawnFace) static voidstopAnimation(Store<EntityStore> store, int networkId, Ref<EntityStore> ref, AnimationSlot animationSlot)
-
Field Details
-
DEPLOYABLE_MAX_STAT_MODIFIER
- See Also:
-
-
Constructor Details
-
DeployablesUtils
public DeployablesUtils()
-
-
Method Details
-
spawnDeployable
@Nonnull public static Ref<EntityStore> spawnDeployable(@Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Store<EntityStore> store, @Nonnull DeployableConfig config, @Nonnull Ref<EntityStore> deployerRef, @Nonnull Vector3f position, @Nonnull Vector3f rotation, @Nonnull String spawnFace) -
populateStats
static void populateStats(@Nonnull DeployableConfig config, @Nonnull EntityStatMap entityStatMapComponent) -
playAnimation
public static void playAnimation(@Nonnull Store<EntityStore> store, int networkId, @Nonnull Ref<EntityStore> ref, @Nonnull DeployableConfig config, @Nonnull AnimationSlot animationSlot, @Nullable String itemAnimationsId, @Nonnull String animationId) -
stopAnimation
public static void stopAnimation(@Nonnull Store<EntityStore> store, int networkId, @Nonnull Ref<EntityStore> ref, @Nonnull AnimationSlot animationSlot) -
playSoundEventsAtEntity
public static void playSoundEventsAtEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor, int localIndex, int worldIndex, @Nonnull Vector3d pos)
-