public class DeployablesUtils
Class DeployablesUtils. Provides deployablesutils functionality for the Hytale server.
java.lang.Object > DeployablesUtils
Field Summary
holder
Field holder.
spawnPos
Field spawnPos.
model
Field model.
audioComponent
Field audioComponent.
uiCompList
Field uiCompList.
hitboxCollisionConfigIndex
Field hitboxCollisionConfigIndex.
hitboxCollisionAsset
Field hitboxCollisionAsset.
liveDuration
Field liveDuration.
entityStatMapComponent
Field entityStatMapComponent.
deployableComponent
Field deployableComponent.
transformComponent
Field transformComponent.
headRotationComponent
Field headRotationComponent.
statConfig
Field statConfig.
statIndex
Field statIndex.
stat
Field stat.
asset
Field asset.
modifier
Field modifier.
initialValue
Field initialValue.
animationPacket
Field animationPacket.
targetPlayerComponent
Field targetPlayerComponent.
Method Detail
spawnDeployable
Ref
spawnDeployable
(@Nonnull final CommandBuffer commandBuffer, @Nonnull final Store store, @Nonnull final DeployableConfig config, @Nonnull final Ref deployerRef, @Nonnull final Vector3f position, @Nonnull final Vector3f rotation, @Nonnull final String spawnFace)
Method spawnDeployable.
- Parameters:
@Nonnull final CommandBuffercommandBuffer@Nonnull final Storestore@Nonnull final DeployableConfigconfig@Nonnull final RefdeployerRef@Nonnull final Vector3fposition@Nonnull final Vector3frotation@Nonnull final StringspawnFace
DeployableComponent
new
DeployableComponent
()
Method DeployableComponent.
TransformComponent
new
TransformComponent
()
Method TransformComponent.
HeadRotation
new
HeadRotation
(Vector3f.FORWARD)
Method HeadRotation.
- Parameters:
Vector3f.FORWARDVector3f.FORWARD
UUIDComponent
new
UUIDComponent
(UUID.randomUUID()
Method UUIDComponent.
- Parameters:
UUID.randomUUID(UUID.randomUUID(
EntityStatMap
new
EntityStatMap
()
Method EntityStatMap.
ModelComponent
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
BoundingBox
new
BoundingBox
(model.getBoundingBox()
Method BoundingBox.
- Parameters:
model.getBoundingBox(model.getBoundingBox(
NetworkId
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
HitboxCollision
new
HitboxCollision
(hitboxCollisionAsset)
Method HitboxCollision.
- Parameters:
hitboxCollisionAssethitboxCollisionAsset
DespawnComponent
new
DespawnComponent
(store.getResource(TimeResource.getResourceType()
Method DespawnComponent.
- Parameters:
store.getResource(TimeResource.getResourceType(store.getResource(TimeResource.getResourceType(
populateStats
void
populateStats
(@Nonnull final DeployableConfig config, @Nonnull final EntityStatMap entityStatMapComponent)
Method populateStats.
- Parameters:
@Nonnull final DeployableConfigconfig@Nonnull final EntityStatMapentityStatMapComponent
StaticModifier
new
StaticModifier
(Modifier.ModifierTarget.MAX, StaticModifier.CalculationType.ADDITIVE, statConfig.getMax()
Method StaticModifier.
- Parameters:
Modifier.ModifierTarget.MAXModifier.ModifierTarget.MAXStaticModifier.CalculationType.ADDITIVEStaticModifier.CalculationType.ADDITIVEstatConfig.getMax(statConfig.getMax(
playAnimation
void
playAnimation
(@Nonnull final Store store, final int networkId, @Nonnull final Ref ref, @Nonnull final DeployableConfig config, @Nonnull final AnimationSlot animationSlot, @Nullable final String itemAnimationsId, @Nonnull final String animationId)
Method playAnimation.
- Parameters:
@Nonnull final Storestorefinal intnetworkId@Nonnull final Refref@Nonnull final DeployableConfigconfig@Nonnull final AnimationSlotanimationSlot@Nullable final StringitemAnimationsId@Nonnull final StringanimationId
stopAnimation
void
stopAnimation
(@Nonnull final Store store, final int networkId, @Nonnull final Ref ref, @Nonnull final AnimationSlot animationSlot)
Method stopAnimation.
- Parameters:
@Nonnull final Storestorefinal intnetworkId@Nonnull final Refref@Nonnull final AnimationSlotanimationSlot
playSoundEventsAtEntity
void
playSoundEventsAtEntity
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor, final int localIndex, final int worldIndex, @Nonnull final Vector3d pos)
Method playSoundEventsAtEntity.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessorfinal intlocalIndexfinal intworldIndex@Nonnull final Vector3dpos