Class DeployableTurretConfig
java.lang.Object
com.hypixel.hytale.builtin.deployables.config.DeployableConfig
com.hypixel.hytale.builtin.deployables.config.DeployableTurretConfig
- All Implemented Interfaces:
NetworkSerializable<DeployableConfig>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.builtin.deployables.config.DeployableConfig
DeployableConfig.StatConfig -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected floatprotected intprotected booleanstatic final BuilderCodec<DeployableTurretConfig> protected floatprotected floatprotected booleanprotected booleanprotected ProjectileConfigprotected floatprotected Stringprotected intprotected Stringprotected intprotected Knockbackprotected booleanprotected floatprotected floatprotected Vector3dprotected floatFields inherited from class com.hypixel.hytale.builtin.deployables.config.DeployableConfig
ambientSoundEventId, ambientSoundEventIndex, BASE_CODEC, deploySoundEventId, deploySoundEventIndex, despawnParticles, despawnSoundEventId, despawnSoundEventIndex, dieSoundEventId, dieSoundEventIndex, generatedModel, generatedModelPreview, hitboxCollisionConfigId, hitboxCollisionConfigIndex, spawnParticles, statValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyKnockback(Ref<EntityStore> targetRef, Vector3d attackerPos, float attackerYaw, Store<EntityStore> store) private Vector3dcalculatedTargetPosition(Vector3d original) private booleanisValidTarget(Ref<EntityStore> ref, Store<EntityStore> store, Ref<EntityStore> targetRef) protected voidprivate voidprojectileHit(Ref<EntityStore> ref, Ref<EntityStore> projectileRef, DeployableProjectileShooterComponent shooterComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private booleantestLineOfSight(Vector3d attackerPos, Vector3d targetPos, Vector3d direction, CommandBuffer<EntityStore> commandBuffer) voidtick(DeployableComponent deployableComponent, float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private voidtickAttackState(Ref<EntityStore> ref, DeployableComponent component, float dt, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private voidtickAwaitDeployState(Ref<EntityStore> ref, DeployableComponent component, Store<EntityStore> store) private voidtickInitState(Ref<EntityStore> entityRef, DeployableComponent component, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private voidtickStartDeployState(Ref<EntityStore> ref, DeployableComponent component, Store<EntityStore> store) toString()private voidupdateProjectile(Ref<EntityStore> projectileRef, DeployableProjectileShooterComponent shooterComponent, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) private voidupdateProjectiles(Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, DeployableProjectileShooterComponent shooterComponent) Methods inherited from class com.hypixel.hytale.builtin.deployables.config.DeployableConfig
firstTick, getAllowPlaceOnWalls, getAmbientSoundEventIndex, getCountTowardsGlobalLimit, getDebugVisuals, getDeploySoundEventIndex, getDespawnParticles, getDespawnSoundEventIndex, getDieSoundEventIndex, getHitboxCollisionConfigIndex, getId, getInvulnerable, getLiveDuration, getLiveDurationInMillis, getMaxLiveCount, getModel, getModelPreview, getSpawnParticles, getStatValues, getWireframeDebugVisuals, playAnimation, stopAnimation, toPacket
-
Field Details
-
CODEC
-
trackableRadius
protected float trackableRadius -
detectionRadius
protected float detectionRadius -
rotationSpeed
protected float rotationSpeed -
projectileDamage
protected float projectileDamage -
preferOwnerTarget
protected boolean preferOwnerTarget -
ammo
protected int ammo -
projectileConfig
-
deployDelay
protected float deployDelay -
shotInterval
protected float shotInterval -
burstCount
protected int burstCount -
burstCooldown
protected float burstCooldown -
canShootOwner
protected boolean canShootOwner -
projectileKnockback
-
targetOffset
-
doLineOfSightTest
protected boolean doLineOfSightTest -
projectileHitWorldSoundEventId
-
projectileHitLocalSoundEventId
-
projectileHitLocalSoundEventIndex
protected int projectileHitLocalSoundEventIndex -
projectileHitWorldSoundEventIndex
protected int projectileHitWorldSoundEventIndex -
respectTeams
protected boolean respectTeams -
projectileSpawnOffsets
-
-
Constructor Details
-
DeployableTurretConfig
public DeployableTurretConfig()
-
-
Method Details
-
processConfig
protected void processConfig() -
tick
public void tick(@Nonnull DeployableComponent deployableComponent, float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Overrides:
tickin classDeployableConfig
-
tickInitState
private void tickInitState(@Nonnull Ref<EntityStore> entityRef, @Nonnull DeployableComponent component, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
tickStartDeployState
private void tickStartDeployState(@Nonnull Ref<EntityStore> ref, @Nonnull DeployableComponent component, @Nonnull Store<EntityStore> store) -
tickAwaitDeployState
private void tickAwaitDeployState(@Nonnull Ref<EntityStore> ref, @Nonnull DeployableComponent component, @Nonnull Store<EntityStore> store) -
tickAttackState
private void tickAttackState(@Nonnull Ref<EntityStore> ref, @Nonnull DeployableComponent component, float dt, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
calculatedTargetPosition
-
isValidTarget
private boolean isValidTarget(@Nonnull Ref<EntityStore> ref, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> targetRef) -
testLineOfSight
private boolean testLineOfSight(@Nonnull Vector3d attackerPos, @Nonnull Vector3d targetPos, @Nonnull Vector3d direction, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
updateProjectiles
private void updateProjectiles(@Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull DeployableProjectileShooterComponent shooterComponent) -
updateProjectile
private void updateProjectile(@Nonnull Ref<EntityStore> projectileRef, @Nonnull DeployableProjectileShooterComponent shooterComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
projectileHit
private void projectileHit(@Nonnull Ref<EntityStore> ref, @Nonnull Ref<EntityStore> projectileRef, @Nonnull DeployableProjectileShooterComponent shooterComponent, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
applyKnockback
private void applyKnockback(@Nonnull Ref<EntityStore> targetRef, @Nonnull Vector3d attackerPos, float attackerYaw, @Nonnull Store<EntityStore> store) -
toString
- Overrides:
toStringin classDeployableConfig
-