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>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprotected Stringprotected intstatic final BuilderCodec<DeployableConfig> static final CodecMapCodec<DeployableConfig> private booleanprivate booleanprotected Stringprotected intprotected ModelParticle[]protected Stringprotected intprotected Stringprotected intprotected Modelprotected Modelprotected Stringprotected intprivate Stringprivate booleanprivate floatprivate intprivate Stringprivate Stringprivate floatprotected ModelParticle[]protected Map<String, DeployableConfig.StatConfig> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfirstTick(DeployableComponent deployableComponent, float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) booleanintbooleanbooleanintintintintgetId()booleanfloatlongintgetModel()booleanprotected static voidplayAnimation(Store<EntityStore> store, Ref<EntityStore> ref, DeployableConfig config, String animationSetKey) private static voidprocessConfig(DeployableConfig config) protected static voidstopAnimation(Store<EntityStore> store, ArchetypeChunk<EntityStore> archetypeChunk, int index) voidtick(DeployableComponent deployableComponent, float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) toPacket()toString()
-
Field Details
-
CODEC
-
BASE_CODEC
-
statValues
-
deploySoundEventId
-
despawnSoundEventId
-
dieSoundEventId
-
ambientSoundEventId
-
spawnParticles
-
despawnParticles
-
deploySoundEventIndex
protected transient int deploySoundEventIndex -
despawnSoundEventIndex
protected transient int despawnSoundEventIndex -
dieSoundEventIndex
protected transient int dieSoundEventIndex -
ambientSoundEventIndex
protected transient int ambientSoundEventIndex -
generatedModel
-
generatedModelPreview
-
hitboxCollisionConfigId
-
hitboxCollisionConfigIndex
protected int hitboxCollisionConfigIndex -
id
-
maxLiveCount
private int maxLiveCount -
model
-
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
-
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
-
getModelPreview
-
getHitboxCollisionConfigIndex
public int getHitboxCollisionConfigIndex() -
getLiveDurationInMillis
public long getLiveDurationInMillis() -
getLiveDuration
public float getLiveDuration() -
getId
-
getMaxLiveCount
public int getMaxLiveCount() -
getInvulnerable
public boolean getInvulnerable() -
getStatValues
-
getDespawnSoundEventIndex
public int getDespawnSoundEventIndex() -
getDeploySoundEventIndex
public int getDeploySoundEventIndex() -
getDieSoundEventIndex
public int getDieSoundEventIndex() -
getAmbientSoundEventIndex
public int getAmbientSoundEventIndex() -
getSpawnParticles
-
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
- Specified by:
toPacketin interfaceNetworkSerializable<DeployableConfig>
-
toString
-