-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCustomProjectileDefinition.java
More file actions
36 lines (27 loc) · 1.06 KB
/
Copy pathCustomProjectileDefinition.java
File metadata and controls
36 lines (27 loc) · 1.06 KB
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
34
35
36
package at.pavlov.internal.projectile.definition;
import at.pavlov.internal.Key;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Map;
@Getter
@Builder
@AllArgsConstructor
public class CustomProjectileDefinition implements ProjectilePhysics {
private final Key key; // for the name of the custom projectile definition
private final Key entityKey;
private final Double constantAcceleration;
private final double gravity;
private final double drag;
private final double waterDrag;
private final boolean glowing;
private final boolean onFire; // visual fire for projectile
private final boolean charged; // works for wither skeletons
private final boolean critical; // for arrows and tridents
//for throwable projectiles & item displays only
private final @Nullable Key material;
private final @Nullable Integer customModelData;
private final @NotNull Map<String, @NotNull Double> attributes;
}