Class DeployableAoeConfig
java.lang.Object
com.hypixel.hytale.builtin.deployables.config.DeployableConfig
com.hypixel.hytale.builtin.deployables.config.DeployableAoeConfig
- All Implemented Interfaces:
NetworkSerializable<DeployableConfig>
- Direct Known Subclasses:
DeployableTrapConfig
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.hypixel.hytale.builtin.deployables.config.DeployableConfig
DeployableConfig.StatConfig -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanstatic final BuilderCodec<DeployableAoeConfig> protected floatprotected Stringprotected floatprotected String[]protected floatprotected floatprotected DamageCauseprotected floatprotected DeployableAoeConfig.Shapeprotected 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 TypeMethodDescriptionprotected voidapplyEffectToTarget(Store<EntityStore> store, Ref<EntityStore> targetRef) protected voidattackTarget(Ref<EntityStore> targetRef, Ref<EntityStore> ownerRef, DamageCause damageCause, CommandBuffer<EntityStore> commandBuffer) protected booleancanAttackEntity(Ref<EntityStore> target, DeployableComponent deployable) protected DamageCauseprotected floatgetRadius(Store<EntityStore> store, Instant startInstant) protected voidhandleDebugGraphics(World world, Vector3f color, Vector3d position, float scale) protected voidhandleDetection(Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> deployableRef, DeployableComponent deployableComponent, Vector3d position, float radius, DamageCause damageCause) voidtick(DeployableComponent deployableComponent, float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) toString()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
-
startRadius
protected float startRadius -
endRadius
protected float endRadius -
radiusChangeTime
protected float radiusChangeTime -
damageInterval
protected float damageInterval -
damageAmount
protected float damageAmount -
damageCause
-
effectsToApply
-
attackOwner
protected boolean attackOwner -
attackTeam
protected boolean attackTeam -
attackEnemies
protected boolean attackEnemies -
shape
-
height
protected float height -
processedDamageCause
-
-
Constructor Details
-
DeployableAoeConfig
protected DeployableAoeConfig()
-
-
Method Details
-
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
-
handleDetection
protected void handleDetection(Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, Ref<EntityStore> deployableRef, DeployableComponent deployableComponent, Vector3d position, float radius, DamageCause damageCause) -
handleDebugGraphics
-
attackTarget
protected void attackTarget(Ref<EntityStore> targetRef, Ref<EntityStore> ownerRef, DamageCause damageCause, CommandBuffer<EntityStore> commandBuffer) -
applyEffectToTarget
-
canAttackEntity
-
getRadius
-
getDamageCause
-
toString
- Overrides:
toStringin classDeployableConfig
-