classpublicPriority 1
ProjectileConfig
com.hypixel.hytale.server.core.modules.projectile.config.ProjectileConfig
implements JsonAssetWithMap<String, DefaultAssetMap<String, ProjectileConfig>>, NetworkSerializable, BallisticData
18
Methods
18
Public Methods
13
Fields
1
Constructors
Constants
AssetBuilderCodec<String, ProjectileConfig>CODEC= AssetBuilderCodec.builder(
ProjectileConfig.class,
ProjectileConfig::new,
...
ValidatorCache<String>VALIDATOR_CACHE= new ValidatorCache<>(new AssetKeyValidator<>(ProjectileConfig::getAssetStore))
Constructors
public
ProjectileConfig()Methods
Public Methods (18)
publicstatic
DefaultAssetMap<String, ProjectileConfig> getAssetMap()@Nonnull
publicstatic
AssetStore<String, ProjectileConfig, DefaultAssetMap<String, ProjectileConfig>> getAssetStore()@Nonnull
public
Vector3d getCalculatedOffset(float pitch, float yaw)@Nonnull
public
double getDepthShot()@Override
public
double getGravity()@Override
public
String getId()@Nullable
public
Map<InteractionType, String> getInteractions()public
double getLaunchForce()public
int getLaunchWorldSoundEventIndex()public
Model getModel()@Nonnull
public
double getMuzzleVelocity()@Override
public
PhysicsConfig getPhysicsConfig()@Nonnull
public
int getProjectileSoundEventIndex()public
Vector3f getSpawnOffset()@Nonnull
public
Direction getSpawnRotationOffset()@Nonnull
public
double getVerticalCenterShot()@Override
public
boolean isPitchAdjustShot()@Override
public
com.hypixel.hytale.protocol.ProjectileConfig toPacket()@Nonnull
Fields
Protected Fields (12)
protected
AssetExtraInfo.Data dataprotected
Model generatedModelprotected
String idprotected
double launchForceprotected
String launchLocalSoundEventIdprotected
int launchLocalSoundEventIndexprotected
String launchWorldSoundEventIdprotected
int launchWorldSoundEventIndexprotected
String modelprotected
PhysicsConfig physicsConfigprotected
String projectileSoundEventIdprotected
int projectileSoundEventIndexPrivate/Package Fields (1)
private
AssetStore<String, ProjectileConfig, DefaultAssetMap<String, ProjectileConfig>> ASSET_STORE