-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCustomProjectileDefinition.java
More file actions
33 lines (26 loc) · 934 Bytes
/
CustomProjectileDefinition.java
File metadata and controls
33 lines (26 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package at.pavlov.internal.projectile.definition;
import at.pavlov.internal.Key;
import lombok.*;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.configurate.objectmapping.ConfigSerializable;
@Getter
@Builder
@EqualsAndHashCode
@ConfigSerializable
@NoArgsConstructor
@AllArgsConstructor
public class CustomProjectileDefinition implements ProjectilePhysics {
private Key key; // for the name of the custom projectile definition
private Key entityKey;
private Double constantAcceleration;
private double gravity;
private double drag;
private double waterDrag;
private boolean glowing;
private boolean onFire; // visual fire for projectile
private boolean charged; // works for wither skeletons
private boolean critical; // for arrows and tridents
//for throwable projectiles only
private @Nullable Key material;
private @Nullable Integer customModelData;
}