Class DeployableConfig

java.lang.Object
com.hypixel.hytale.builtin.deployables.config.DeployableConfig
All Implemented Interfaces:
NetworkSerializable<DeployableConfig>
Direct Known Subclasses:
DeployableAoeConfig, DeployableTurretConfig

public abstract class DeployableConfig extends Object implements NetworkSerializable<DeployableConfig>
  • Field Details

    • CODEC

      public static final CodecMapCodec<DeployableConfig> CODEC
    • BASE_CODEC

      public static final BuilderCodec<DeployableConfig> BASE_CODEC
    • statValues

      protected Map<String,DeployableConfig.StatConfig> statValues
    • deploySoundEventId

      protected String deploySoundEventId
    • despawnSoundEventId

      protected String despawnSoundEventId
    • dieSoundEventId

      protected String dieSoundEventId
    • ambientSoundEventId

      protected String ambientSoundEventId
    • spawnParticles

      protected ModelParticle[] spawnParticles
    • despawnParticles

      protected ModelParticle[] despawnParticles
    • deploySoundEventIndex

      protected transient int deploySoundEventIndex
    • despawnSoundEventIndex

      protected transient int despawnSoundEventIndex
    • dieSoundEventIndex

      protected transient int dieSoundEventIndex
    • ambientSoundEventIndex

      protected transient int ambientSoundEventIndex
    • generatedModel

      protected Model generatedModel
    • generatedModelPreview

      protected Model generatedModelPreview
    • hitboxCollisionConfigId

      protected String hitboxCollisionConfigId
    • hitboxCollisionConfigIndex

      protected int hitboxCollisionConfigIndex
    • id

      private String id
    • maxLiveCount

      private int maxLiveCount
    • model

      private String model
    • modelPreview

      private String modelPreview
    • modelScale

      private float modelScale
    • liveDuration

      private float liveDuration
    • invulnerable

      private boolean invulnerable
    • debugVisuals

      private boolean debugVisuals
    • allowPlaceOnWalls

      private boolean allowPlaceOnWalls
    • wireframeDebugVisuals

      private boolean wireframeDebugVisuals
    • countTowardsGlobalLimit

      private boolean countTowardsGlobalLimit
  • Constructor Details

    • DeployableConfig

      protected DeployableConfig()
  • Method Details

    • processConfig

      private static void processConfig(DeployableConfig config)
    • playAnimation

      protected static void playAnimation(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull DeployableConfig config, @Nonnull String animationSetKey)
    • stopAnimation

      protected static void stopAnimation(@Nonnull Store<EntityStore> store, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, int index)
    • getModel

      public Model getModel()
    • getModelPreview

      public Model getModelPreview()
    • getHitboxCollisionConfigIndex

      public int getHitboxCollisionConfigIndex()
    • getLiveDurationInMillis

      public long getLiveDurationInMillis()
    • getLiveDuration

      public float getLiveDuration()
    • getId

      public String getId()
    • getMaxLiveCount

      public int getMaxLiveCount()
    • getInvulnerable

      public boolean getInvulnerable()
    • getStatValues

      public Map<String,DeployableConfig.StatConfig> getStatValues()
    • getDespawnSoundEventIndex

      public int getDespawnSoundEventIndex()
    • getDeploySoundEventIndex

      public int getDeploySoundEventIndex()
    • getDieSoundEventIndex

      public int getDieSoundEventIndex()
    • getAmbientSoundEventIndex

      public int getAmbientSoundEventIndex()
    • getSpawnParticles

      public ModelParticle[] getSpawnParticles()
    • getDespawnParticles

      public ModelParticle[] getDespawnParticles()
    • getDebugVisuals

      public boolean getDebugVisuals()
    • getAllowPlaceOnWalls

      public boolean getAllowPlaceOnWalls()
    • getWireframeDebugVisuals

      public boolean getWireframeDebugVisuals()
    • getCountTowardsGlobalLimit

      public boolean getCountTowardsGlobalLimit()
    • tick

      public void tick(@Nonnull DeployableComponent deployableComponent, float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)
    • firstTick

      public void firstTick(@Nonnull DeployableComponent deployableComponent, float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)
    • toPacket

      public DeployableConfig toPacket()
      Specified by:
      toPacket in interface NetworkSerializable<DeployableConfig>
    • toString

      public String toString()
      Overrides:
      toString in class Object