@@ -132,15 +132,15 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
132
132
@ Expose
133
133
private double z ;
134
134
@ Expose
135
- private boolean glowing ;
135
+ private Boolean glowing ;
136
136
@ Expose
137
- private boolean gravity ;
137
+ private Boolean gravity ;
138
138
@ Expose
139
- private boolean visualFire ;
139
+ private Boolean visualFire ;
140
140
@ Expose
141
- private boolean silent ;
141
+ private Boolean silent ;
142
142
@ Expose
143
- private boolean invulnerable ;
143
+ private Boolean invulnerable ;
144
144
@ Expose
145
145
private int fireTicks ;
146
146
@@ -149,6 +149,7 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
149
149
* @param entity entity to serialize
150
150
* @since 3.2.0
151
151
*/
152
+ @ SuppressWarnings ("deprecation" )
152
153
public BlueprintEntity (Entity entity ) {
153
154
this .setType (entity .getType ());
154
155
this .setCustomName (entity .getCustomName ());
@@ -568,6 +569,9 @@ public void storeDisplay(Display disp) {
568
569
* @return the glowing
569
570
*/
570
571
public boolean isGlowing () {
572
+ if (glowing == null ) {
573
+ glowing = false ; // Default
574
+ }
571
575
return glowing ;
572
576
}
573
577
@@ -582,6 +586,9 @@ public void setGlowing(boolean glowing) {
582
586
* @return the gravity
583
587
*/
584
588
public boolean isGravity () {
589
+ if (gravity == null ) {
590
+ gravity = true ;
591
+ }
585
592
return gravity ;
586
593
}
587
594
@@ -596,6 +603,9 @@ public void setGravity(boolean gravity) {
596
603
* @return the visualFire
597
604
*/
598
605
public boolean isVisualFire () {
606
+ if (visualFire == null ) {
607
+ visualFire = true ;
608
+ }
599
609
return visualFire ;
600
610
}
601
611
@@ -610,6 +620,9 @@ public void setVisualFire(boolean visualFire) {
610
620
* @return the silent
611
621
*/
612
622
public boolean isSilent () {
623
+ if (silent == null ) {
624
+ silent = false ;
625
+ }
613
626
return silent ;
614
627
}
615
628
@@ -624,6 +637,9 @@ public void setSilent(boolean silent) {
624
637
* @return the invulnerable
625
638
*/
626
639
public boolean isInvulnerable () {
640
+ if (invulnerable == null ) {
641
+ invulnerable = false ;
642
+ }
627
643
return invulnerable ;
628
644
}
629
645
0 commit comments