Class ProjectileConfig
java.lang.Object
com.hypixel.hytale.server.core.modules.projectile.config.ProjectileConfig
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,,DefaultAssetMap<String, ProjectileConfig>> NetworkSerializable<ProjectileConfig>,BallisticData
public class ProjectileConfig
extends Object
implements JsonAssetWithMap<String,DefaultAssetMap<String,ProjectileConfig>>, NetworkSerializable<ProjectileConfig>, BallisticData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AssetStore<String, ProjectileConfig, DefaultAssetMap<String, ProjectileConfig>> static final AssetBuilderCodec<String, ProjectileConfig> protected AssetExtraInfo.Dataprotected Modelprotected Stringprotected Map<InteractionType, String> protected doubleprotected Stringprotected intprotected Stringprotected intprotected Stringprotected PhysicsConfigprotected Stringprotected intprotected Vector3fprotected Directionstatic final ValidatorCache<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultAssetMap<String, ProjectileConfig> getCalculatedOffset(float pitch, float yaw) doubledoublegetId()doubleintgetModel()doubleintdoublebooleanprotected voidtoPacket()
-
Field Details
-
CODEC
-
ASSET_STORE
@Nullable private static AssetStore<String,ProjectileConfig, ASSET_STOREDefaultAssetMap<String, ProjectileConfig>> -
VALIDATOR_CACHE
-
data
-
id
-
physicsConfig
-
model
-
generatedModel
-
launchForce
protected double launchForce -
spawnOffset
-
spawnRotationOffset
-
interactions
-
launchLocalSoundEventId
-
launchWorldSoundEventId
-
projectileSoundEventId
-
launchLocalSoundEventIndex
protected int launchLocalSoundEventIndex -
launchWorldSoundEventIndex
protected int launchWorldSoundEventIndex -
projectileSoundEventIndex
protected int projectileSoundEventIndex
-
-
Constructor Details
-
ProjectileConfig
public ProjectileConfig()
-
-
Method Details
-
getAssetStore
@Nonnull public static AssetStore<String,ProjectileConfig, getAssetStore()DefaultAssetMap<String, ProjectileConfig>> -
getAssetMap
-
getId
-
processConfig
protected void processConfig() -
getPhysicsConfig
-
getModel
-
getLaunchForce
public double getLaunchForce() -
getMuzzleVelocity
public double getMuzzleVelocity()- Specified by:
getMuzzleVelocityin interfaceBallisticData
-
getGravity
public double getGravity()- Specified by:
getGravityin interfaceBallisticData
-
getVerticalCenterShot
public double getVerticalCenterShot()- Specified by:
getVerticalCenterShotin interfaceBallisticData
-
getDepthShot
public double getDepthShot()- Specified by:
getDepthShotin interfaceBallisticData
-
isPitchAdjustShot
public boolean isPitchAdjustShot()- Specified by:
isPitchAdjustShotin interfaceBallisticData
-
getInteractions
-
getLaunchWorldSoundEventIndex
public int getLaunchWorldSoundEventIndex() -
getProjectileSoundEventIndex
public int getProjectileSoundEventIndex() -
getSpawnOffset
-
getSpawnRotationOffset
-
getCalculatedOffset
-
toPacket
- Specified by:
toPacketin interfaceNetworkSerializable<ProjectileConfig>
-