DeployablesUtils

public class DeployablesUtils

Class DeployablesUtils. Provides deployablesutils functionality for the Hytale server.

java.lang.Object > DeployablesUtils

Field Summary

holder

final Holder holder

Field holder.

spawnPos

final Vector3d spawnPos

Field spawnPos.

model

final Model model

Field model.

audioComponent

final AudioComponent audioComponent

Field audioComponent.

uiCompList

final UIComponentList uiCompList

Field uiCompList.

hitboxCollisionConfigIndex

final int hitboxCollisionConfigIndex

Field hitboxCollisionConfigIndex.

hitboxCollisionAsset

final HitboxCollisionConfig hitboxCollisionAsset

Field hitboxCollisionAsset.

liveDuration

final long liveDuration

Field liveDuration.

entityStatMapComponent

final EntityStatMap entityStatMapComponent

Field entityStatMapComponent.

deployableComponent

final DeployableComponent deployableComponent

Field deployableComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

statConfig

final DeployableConfig.StatConfig statConfig

Field statConfig.

statIndex

final int statIndex

Field statIndex.

stat

final EntityStatValue stat

Field stat.

asset

final EntityStatType asset

Field asset.

modifier

final StaticModifier modifier

Field modifier.

initialValue

final float initialValue

Field initialValue.

animationPacket

final PlayAnimation animationPacket

Field animationPacket.

targetPlayerComponent

final Player targetPlayerComponent

Field targetPlayerComponent.

Method Detail

spawnDeployable

static 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 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

DeployableComponent

public new DeployableComponent ()

Method DeployableComponent.

TransformComponent

public new TransformComponent ()

Method TransformComponent.

HeadRotation

public new HeadRotation (Vector3f.FORWARD)

Method HeadRotation.

Parameters:
Vector3f.FORWARD Vector3f.FORWARD

UUIDComponent

public new UUIDComponent (UUID.randomUUID()

Method UUIDComponent.

Parameters:
UUID.randomUUID( UUID.randomUUID(

EntityStatMap

public new EntityStatMap ()

Method EntityStatMap.

ModelComponent

public new ModelComponent (model)

Method ModelComponent.

Parameters:
model model

PersistentModel

public new PersistentModel (model.toReference()

Method PersistentModel.

Parameters:
model.toReference( model.toReference(

BoundingBox

public new BoundingBox (model.getBoundingBox()

Method BoundingBox.

Parameters:
model.getBoundingBox( model.getBoundingBox(

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

HitboxCollision

public new HitboxCollision (hitboxCollisionAsset)

Method HitboxCollision.

Parameters:
hitboxCollisionAsset hitboxCollisionAsset

DespawnComponent

public new DespawnComponent (store.getResource(TimeResource.getResourceType()

Method DespawnComponent.

Parameters:
store.getResource(TimeResource.getResourceType( store.getResource(TimeResource.getResourceType(

populateStats

static void populateStats (@Nonnull final DeployableConfig config, @Nonnull final EntityStatMap entityStatMapComponent)

Method populateStats.

Parameters:
@Nonnull final DeployableConfig config
@Nonnull final EntityStatMap entityStatMapComponent

StaticModifier

public new StaticModifier (Modifier.ModifierTarget.MAX, StaticModifier.CalculationType.ADDITIVE, statConfig.getMax()

Method StaticModifier.

Parameters:
Modifier.ModifierTarget.MAX Modifier.ModifierTarget.MAX
StaticModifier.CalculationType.ADDITIVE StaticModifier.CalculationType.ADDITIVE
statConfig.getMax( statConfig.getMax(

playAnimation

static 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 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

stopAnimation

static void stopAnimation (@Nonnull final Store store, final int networkId, @Nonnull final Ref ref, @Nonnull final AnimationSlot animationSlot)

Method stopAnimation.

Parameters:
@Nonnull final Store store
final int networkId
@Nonnull final Ref ref
@Nonnull final AnimationSlot animationSlot

playSoundEventsAtEntity

static 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 Ref ref
@Nonnull final ComponentAccessor componentAccessor
final int localIndex
final int worldIndex
@Nonnull final Vector3d pos