File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/data/camera Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
@ NoArgsConstructor
15
15
public class CameraPreset {
16
16
private String identifier ;
17
+ @ Builder .Default
17
18
private String parentPreset = "" ;
18
19
// All the values below are optional, and will not be encoded if null is used
19
20
private Vector3f pos ;
@@ -28,6 +29,7 @@ public class CameraPreset {
28
29
*/
29
30
private Float radius ;
30
31
private CameraAudioListener listener ;
32
+ @ Builder .Default
31
33
private OptionalBoolean playEffect = OptionalBoolean .empty ();
32
34
/**
33
35
* @since v729
@@ -36,6 +38,7 @@ public class CameraPreset {
36
38
/**
37
39
* @since v729
38
40
*/
41
+ @ Builder .Default
39
42
private OptionalBoolean snapToTarget = OptionalBoolean .empty ();
40
43
/**
41
44
* @since v729
@@ -52,9 +55,11 @@ public class CameraPreset {
52
55
/**
53
56
* @since v748
54
57
*/
58
+ @ Builder .Default
55
59
private OptionalBoolean continueTargeting = OptionalBoolean .empty ();
56
60
/**
57
61
* @since v748
58
62
*/
63
+ @ Builder .Default
59
64
private OptionalBoolean alignTargetAndCameraForward = OptionalBoolean .empty ();
60
65
}
Original file line number Diff line number Diff line change 1
1
package org .cloudburstmc .protocol .bedrock .data .camera ;
2
2
3
3
import lombok .AllArgsConstructor ;
4
+ import lombok .Builder ;
4
5
import lombok .Data ;
5
6
import lombok .NoArgsConstructor ;
6
7
import org .cloudburstmc .math .vector .Vector2f ;
9
10
import org .cloudburstmc .protocol .common .util .OptionalBoolean ;
10
11
11
12
@ Data
13
+ @ Builder
12
14
@ AllArgsConstructor
13
15
@ NoArgsConstructor
14
16
public class CameraSetInstruction {
@@ -25,6 +27,7 @@ public class CameraSetInstruction {
25
27
* @since v748
26
28
*/
27
29
private Vector3f entityOffset ;
30
+ @ Builder .Default
28
31
private OptionalBoolean defaultPreset = OptionalBoolean .empty ();
29
32
30
33
@ Data
You can’t perform that action at this time.
0 commit comments