-
-
Notifications
You must be signed in to change notification settings - Fork 343
/
Keys.java
2360 lines (2089 loc) · 92.3 KB
/
Keys.java
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.api.data.key;
import com.flowpowered.math.vector.Vector3d;
import com.flowpowered.math.vector.Vector3i;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.block.BlockType;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.block.tileentity.*;
import org.spongepowered.api.block.tileentity.carrier.*;
import org.spongepowered.api.data.manipulator.mutable.*;
import org.spongepowered.api.data.manipulator.mutable.block.*;
import org.spongepowered.api.data.manipulator.mutable.entity.*;
import org.spongepowered.api.data.manipulator.mutable.item.*;
import org.spongepowered.api.data.manipulator.mutable.tileentity.*;
import org.spongepowered.api.data.property.entity.DominantHandProperty;
import org.spongepowered.api.data.type.*;
import org.spongepowered.api.data.value.immutable.ImmutableBoundedValue;
import org.spongepowered.api.data.value.mutable.*;
import org.spongepowered.api.effect.particle.ParticleType;
import org.spongepowered.api.effect.potion.PotionEffect;
import org.spongepowered.api.effect.potion.PotionEffectType;
import org.spongepowered.api.item.potion.PotionType;
import org.spongepowered.api.entity.*;
import org.spongepowered.api.entity.explosive.Explosive;
import org.spongepowered.api.entity.explosive.FusedExplosive;
import org.spongepowered.api.entity.hanging.ItemFrame;
import org.spongepowered.api.entity.hanging.Painting;
import org.spongepowered.api.entity.living.*;
import org.spongepowered.api.entity.living.animal.*;
import org.spongepowered.api.entity.living.golem.IronGolem;
import org.spongepowered.api.entity.living.monster.*;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.entity.living.player.User;
import org.spongepowered.api.entity.living.player.gamemode.GameMode;
import org.spongepowered.api.entity.projectile.DamagingProjectile;
import org.spongepowered.api.entity.projectile.EyeOfEnder;
import org.spongepowered.api.entity.projectile.Firework;
import org.spongepowered.api.entity.projectile.arrow.Arrow;
import org.spongepowered.api.entity.projectile.explosive.fireball.Fireball;
import org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart;
import org.spongepowered.api.entity.vehicle.minecart.Minecart;
import org.spongepowered.api.extra.fluid.FluidStackSnapshot;
import org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData;
import org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData;
import org.spongepowered.api.item.FireworkEffect;
import org.spongepowered.api.item.ItemTypes;
import org.spongepowered.api.item.enchantment.Enchantment;
import org.spongepowered.api.item.inventory.ItemStack;
import org.spongepowered.api.item.inventory.ItemStackSnapshot;
import org.spongepowered.api.item.inventory.equipment.EquipmentType;
import org.spongepowered.api.item.merchant.TradeOffer;
import org.spongepowered.api.profile.GameProfile;
import org.spongepowered.api.statistic.Statistic;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.util.Axis;
import org.spongepowered.api.util.Color;
import org.spongepowered.api.util.Direction;
import org.spongepowered.api.util.RespawnLocation;
import org.spongepowered.api.util.generator.dummy.DummyObjectProvider;
import org.spongepowered.api.util.rotation.Rotation;
import org.spongepowered.api.util.weighted.WeightedSerializableObject;
import org.spongepowered.api.world.explosion.Explosion;
import org.spongepowered.api.world.weather.Weather;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* An enumeration of known {@link Key}s used throughout the API.
*/
@SuppressWarnings({"unused", "WeakerAccess"})
public final class Keys {
// SORTFIELDS:ON
/**
* Represents the {@link Key} for the absorption amount of any
* {@link Living} entity.
*
* @see AbsorptionData#absorption()
*/
public static final Key<Value<Double>> ABSORPTION = DummyObjectProvider.createExtendedFor(Key.class, "ABSORPTION");
/**
* Represents the {@link Key} for the acceleration of a {@link Fireball}.
*
* @see AccelerationData#acceleration()
*/
public static final Key<Value<Vector3d>> ACCELERATION = DummyObjectProvider.createExtendedFor(Key.class, "ACCELERATION");
/**
* Represents the {@link Key} for the item a {@link Living} is using.
* For example a player eating a food or blocking with a shield.
*
* <p>If there is no item, the snapshot will be empty. You can check this
* with {@link ItemStackSnapshot#isEmpty()}.</p>
*
* @see ActiveItemData#activeItem()
*/
public static final Key<Value<ItemStackSnapshot>> ACTIVE_ITEM = DummyObjectProvider.createExtendedFor(Key.class, "ACTIVE_ITEM");
/**
* Represents the {@link Key} for the "affecting spawning" state of
* {@link Player}s.
*
* <p>A {@link Player} who does not affect spawning will be treated as a
* spectator in regards to spawning. A {@link MobSpawner} will not be
* activated by his presence and mobs around him may naturally despawn
* if there is no other Player around who affects spawning.</p>
*
* @see AffectsSpawningData#affectsSpawning()
*/
public static final Key<Value<Boolean>> AFFECTS_SPAWNING = DummyObjectProvider.createExtendedFor(Key.class,"AFFECTS_SPAWNING");
/**
* Represents the {@link Key} for the age of any {@link Ageable} creature
* in ticks.
*
* @see AgeableData#age()
*/
public static final Key<MutableBoundedValue<Integer>> AGE = DummyObjectProvider.createExtendedFor(Key.class,"AGE");
/**
* Represents the {@link Key} for whether an {@link Agent}s AI is enabled.
*
* @see AgentData#aiEnabled()
*/
public static final Key<Value<Boolean>> AI_ENABLED = DummyObjectProvider.createExtendedFor(Key.class,"AI_ENABLED");
/**
* Represents the {@link Key} for how angry an {@link Entity} is. This
* applies mostly to {@link ZombiePigman}.
*
* <p>Unlike {@link #ANGRY}, the aggressiveness represented by this key may
* fade over time and the entity will become peaceful again once its anger
* reaches its minimum.</p>
*
* @see AngerableData#angerLevel()
*/
public static final Key<MutableBoundedValue<Integer>> ANGER = DummyObjectProvider.createExtendedFor(Key.class,"ANGER");
/**
* Represents the {@link Key} for whether an {@link Entity} is currently
* aggressive. This mostly applies to wolves.
*
* @see AggressiveData#aggressive()
*/
public static final Key<Value<Boolean>> ANGRY = DummyObjectProvider.createExtendedFor(Key.class,"ANGRY");
/**
* Represents the {@link Key} for the age (in ticks) of an
* {@link AreaEffectCloud} created by a lingering potion.
*
* @see AreaEffectCloudData#age()
*/
public static final Key<MutableBoundedValue<Integer>> AREA_EFFECT_CLOUD_AGE = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_AGE");
/**
* Represents the {@link Key} for the color of an {@link AreaEffectCloud}
* created by a lingering potion.
*
* @see AreaEffectCloudData#color()
*/
public static final Key<Value<Color>> AREA_EFFECT_CLOUD_COLOR = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_COLOR");
/**
* Represents the {@link Key} for the maximum age (in ticks) of an
* {@link AreaEffectCloud} created by a lingering potion.
*
* @see AreaEffectCloudData#duration()
*/
public static final Key<MutableBoundedValue<Integer>> AREA_EFFECT_CLOUD_DURATION = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_DURATION");
/**
* Represents the {@link Key} for the amount of ticks the duration of an
* {@link AreaEffectCloud} is increased or reduced when it applies its
* effect.
*
* @see AreaEffectCloudData#durationOnUse()
*/
public static final Key<MutableBoundedValue<Integer>> AREA_EFFECT_CLOUD_DURATION_ON_USE = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_DURATION_ON_USE");
/**
* Represents the {@link Key} for the particle type of an
* {@link AreaEffectCloud} created by a lingering potion.
*
* @see AreaEffectCloudData#particleType()
*/
public static final Key<Value<ParticleType>> AREA_EFFECT_CLOUD_PARTICLE_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_PARTICLE_TYPE");
/**
* Represents the {@link Key} for the radius of an {@link AreaEffectCloud}.
*
* @see AreaEffectCloudData#radius()
*/
public static final Key<MutableBoundedValue<Double>> AREA_EFFECT_CLOUD_RADIUS = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_RADIUS");
/**
* Represents the {@link Key} for the amount the radius of an
* {@link AreaEffectCloud} grows or shrinks each time it applies its
* effect.
*
* @see AreaEffectCloudData#radiusOnUse()
*/
public static final Key<MutableBoundedValue<Double>> AREA_EFFECT_CLOUD_RADIUS_ON_USE = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_RADIUS_ON_USE");
/**
* Represents the {@link Key} for the amount the radius of an
* {@link AreaEffectCloud} grows or shrinks per tick.
*
* @see AreaEffectCloudData#radiusOnUse()
*/
public static final Key<MutableBoundedValue<Double>> AREA_EFFECT_CLOUD_RADIUS_PER_TICK = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_RADIUS_PER_TICK");
/**
* Represents the {@link Key} for the delay (in ticks) after which an
* {@link AreaEffectCloud} will reapply its effect on a previously
* affected {@link Entity}.
*
* @see AreaEffectCloudData#applicationDelay()
*/
public static final Key<MutableBoundedValue<Integer>> AREA_EFFECT_CLOUD_REAPPLICATION_DELAY = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_REAPPLICATION_DELAY");
/**
* Represents the {@link Key} for the duration in ticks after which an
* {@link AreaEffectCloud} will begin to apply its effect to entities.
*
* @see AreaEffectCloudData#waitTime()
*/
public static final Key<MutableBoundedValue<Integer>> AREA_EFFECT_CLOUD_WAIT_TIME = DummyObjectProvider.createExtendedFor(Key.class,"AREA_EFFECT_CLOUD_WAIT_TIME");
/**
* Represents the {@link Key} for whether an {@link ArmorStand}'s arms are
* visible.
*
* @see ArmorStandData#arms()
*/
public static final Key<Value<Boolean>> ARMOR_STAND_HAS_ARMS = DummyObjectProvider.createExtendedFor(Key.class,"ARMOR_STAND_HAS_ARMS");
/**
* Represents the {@link Key} for whether an {@link ArmorStand} has a
* visible base plate.
*
* @see ArmorStandData#basePlate()
*/
public static final Key<Value<Boolean>> ARMOR_STAND_HAS_BASE_PLATE = DummyObjectProvider.createExtendedFor(Key.class,"ARMOR_STAND_HAS_BASE_PLATE");
/**
* Represents the {@link Key} for whether an {@link ArmorStand} is small.
*
* @see ArmorStandData#small()
*/
public static final Key<Value<Boolean>> ARMOR_STAND_IS_SMALL = DummyObjectProvider.createExtendedFor(Key.class,"ARMOR_STAND_IS_SMALL");
/**
* Represents the {@link Key} for whether an {@link ArmorStand} has a
* significantly smaller collision box in order to act as a marker.
*
* @see ArmorStandData#marker()
*/
public static final Key<Value<Boolean>> ARMOR_STAND_MARKER = DummyObjectProvider.createExtendedFor(Key.class,"ARMOR_STAND_MARKER");
/**
* Represents the {@link Key} for whether players are prevented from taking
* items from an equipment slot on an {@link ArmorStand}
*/
public static final Key<SetValue<EquipmentType>> ARMOR_STAND_TAKING_DISABLED = DummyObjectProvider
.createExtendedFor(Key.class, "ARMOR_STAND_TAKING_DISABLED");
/**
* Represents the {@link Key} for whether players are prevented from taking
* items from an equipment slot on an {@link ArmorStand}
*/
public static final Key<SetValue<EquipmentType>> ARMOR_STAND_PLACING_DISABLED = DummyObjectProvider
.createExtendedFor(Key.class, "ARMOR_STAND_PLACING_DISABLED");
/**
* Represents the {@link Key} for the type of {@link Art} shown by
* (usually) a {@link Painting}.
*
* @see ArtData
*/
public static final Key<Value<Art>> ART = DummyObjectProvider.createExtendedFor(Key.class,"ART");
/**
* Represents the {@link Key} for representing whether a {@link BlockState}
* is "attached" to another block.
*
* @see AttachedData#attached()
*/
public static final Key<Value<Boolean>> ATTACHED = DummyObjectProvider.createExtendedFor(Key.class,"ATTACHED");
/**
* Represents the {@link Key} for the damage dealt by a
* {@link DamagingProjectile}, e.g. an {@link Arrow}.
*
* @see DamagingData#damage()
*/
public static final Key<MutableBoundedValue<Double>> ATTACK_DAMAGE = DummyObjectProvider.createExtendedFor(Key.class,"ATTACK_DAMAGE");
/**
* Represents the {@link Key} for representing the {@link Axis} direction
* of a {@link BlockState}.
*
* @see AxisData
*/
public static final Key<Value<Axis>> AXIS = DummyObjectProvider.createExtendedFor(Key.class,"AXIS");
/**
* Represents the {@link Key} for a {@link Banner}'s base {@link DyeColor}.
*
* @see BannerData#baseColor()
*/
public static final Key<Value<DyeColor>> BANNER_BASE_COLOR = DummyObjectProvider.createExtendedFor(Key.class,"BANNER_BASE_COLOR");
/**
* Represents the {@link Key} for a {@link Banner}'s patterns.
*
* @see BannerData#patternsList()
*/
public static final Key<PatternListValue> BANNER_PATTERNS = DummyObjectProvider.createExtendedFor(Key.class,"BANNER_PATTERNS");
/**
* Represents the {@link Key} for the width of the physical form of an
* {@link Entity}.
*
* <p>Together with {@link #HEIGHT} this defines the size of an
* {@link Entity}.</p>
*
* @see SizeData#base()
*/
public static final Key<MutableBoundedValue<Float>> BASE_SIZE = DummyObjectProvider.createExtendedFor(Key.class,"BASE_SIZE");
/**
* Represents the {@link Key} for the base vehicle a passenger is riding
* at the moment. This may be different from {@link Keys#VEHICLE} as the
* vehicle an {@link Entity} is riding may itself be the passenger of
* another vehicle.
*
* @see VehicleData#baseVehicle()
*/
public static final Key<Value<EntitySnapshot>> BASE_VEHICLE = DummyObjectProvider.createExtendedFor(Key.class,"BASE_VEHICLE");
/**
* Represents the {@link Key} for a {@link Beacon}'s primary effect.
*
* @see BeaconData#primaryEffect()
*/
public static final Key<OptionalValue<PotionEffectType>> BEACON_PRIMARY_EFFECT = DummyObjectProvider.createExtendedFor(Key.class,"BEACON_PRIMARY_EFFECT");
/**
* Represents the {@link Key} for a {@link Beacon}'s secondary effect.
*
* @see BeaconData#secondaryEffect()
*/
public static final Key<OptionalValue<PotionEffectType>> BEACON_SECONDARY_EFFECT = DummyObjectProvider.createExtendedFor(Key.class,"BEACON_SECONDARY_EFFECT");
/**
* Represents the {@link Key} for representing the {@link BigMushroomType}
* of a {@link BlockState}.
*
* @see BigMushroomData
*/
public static final Key<Value<BigMushroomType>> BIG_MUSHROOM_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"BIG_MUSHROOM_TYPE");
/**
* Represents the {@link Key} for the rotation of specific body parts.
*
* <p>This value provides a mapping, effectively combining the data
* referenced by {@link #HEAD_ROTATION}, {@link #CHEST_ROTATION},
* {@link #RIGHT_ARM_ROTATION}, {@link #LEFT_ARM_ROTATION},
* {@link #RIGHT_LEG_ROTATION}, and {@link #LEFT_LEG_ROTATION}.</p>
*
* @see BodyPartRotationalData#partRotation()
*/
public static final Key<MapValue<BodyPart, Vector3d>> BODY_ROTATIONS = DummyObjectProvider.createExtendedFor(Key.class,"BODY_ROTATIONS");
/**
* Represents the {@link Key} for the author of a
* {@link ItemTypes#WRITTEN_BOOK}.
*
* @see AuthorData#author()
*/
public static final Key<Value<Text>> BOOK_AUTHOR = DummyObjectProvider.createExtendedFor(Key.class,"BOOK_AUTHOR");
/**
* Represents the {@link Key} for the content of a
* {@link ItemTypes#WRITTEN_BOOK}.
*
* <p>Use {@link Keys#PLAIN_BOOK_PAGES} if you wish to inspect the contents
* of a {@link ItemTypes#WRITABLE_BOOK}.</p>
*
* @see PagedData#pages()
*/
public static final Key<ListValue<Text>> BOOK_PAGES = DummyObjectProvider.createExtendedFor(Key.class,"BOOK_PAGES");
/**
* Represents the {@link Key} for the {@link BlockType}s able to be broken
* by an item.
*
* @see BreakableData#breakable()
*/
public static final Key<SetValue<BlockType>> BREAKABLE_BLOCK_TYPES = DummyObjectProvider.createExtendedFor(Key.class,"BREAKABLE_BLOCK_TYPES");
/**
* Represents the {@link Key} for representing the {@link BrickType}
* of a {@link BlockState}.
*
* @see BrickData
*/
public static final Key<Value<BrickType>> BRICK_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"BRICK_TYPE");
/**
* Represents the {@link Key} for whether an {@link Entity} can breed.
*
* @see BreedableData#breedable()
*/
public static final Key<Value<Boolean>> CAN_BREED = DummyObjectProvider.createExtendedFor(Key.class,"CAN_BREED");
/**
* Represents the {@link Key} for whether a {@link FallingBlock} can drop
* as an item.
*
* @see FallingBlockData#canDropAsItem()
*/
public static final Key<Value<Boolean>> CAN_DROP_AS_ITEM = DummyObjectProvider.createExtendedFor(Key.class,"CAN_DROP_AS_ITEM");
/**
* Represents the {@link Key} for whether a {@link Humanoid} can fly.
*
* <p>For a {@link Player} this means he is able to toggle flight mode by
* double-tapping his jump button.</p>
*
* @see FlyingAbilityData#canFly()
*/
public static final Key<Value<Boolean>> CAN_FLY = DummyObjectProvider.createExtendedFor(Key.class,"CAN_FLY");
/**
* Represents the {@link Key} for whether a {@link Living} entity may
* change blocks. This mostly applies to {@link Enderman} or
* {@link Creeper}s, but also to some projectiles like {@link Fireball}s.
*
* @see GriefingData#canGrief()
*/
public static final Key<Value<Boolean>> CAN_GRIEF = DummyObjectProvider.createExtendedFor(Key.class,"CAN_GRIEF");
/**
* Represents the {@link Key} for whether a {@link FallingBlock} will place
* itself upon landing.
*
* @see FallingBlockData#canPlaceAsBlock()
*/
public static final Key<Value<Boolean>> CAN_PLACE_AS_BLOCK = DummyObjectProvider.createExtendedFor(Key.class,"CAN_PLACE_AS_BLOCK");
/**
* Represents the {@link Key} for the {@link Villager}'s {@link Career}.
*
* @see CareerData
*/
public static final Key<Value<Career>> CAREER = DummyObjectProvider.createExtendedFor(Key.class,"CAREER");
/**
* Represents the {@link Key} for the rotation of the
* {@link BodyParts#CHEST}.
*
* @see BodyPartRotationalData#bodyRotation()
*/
public static final Key<Value<Vector3d>> CHEST_ROTATION = DummyObjectProvider.createExtendedFor(Key.class,"CHEST_ROTATION");
/**
* Represents the {@link Key} for the {@link CoalType} of an
* {@link ItemStack} or {@link ItemStackSnapshot} of type
* {@link ItemTypes#COAL}.
*
* @see CoalData
*/
public static final Key<Value<CoalType>> COAL_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"COAL_TYPE");
/**
* Represents the {@link Key} for the {@link Color} of an
* {@link ItemStack}.
*
* @see ColoredData#color()
*/
public static final Key<Value<Color>> COLOR = DummyObjectProvider.createExtendedFor(Key.class,"COLOR");
/**
* Represents a key for the stored command, mostly related to
* {@link CommandBlock}s and {@link CommandBlockMinecart}s.
*
* @see CommandData#storedCommand()
*/
public static final Key<Value<String>> COMMAND = DummyObjectProvider.createExtendedFor(Key.class,"COMMAND");
/**
* Represents the {@link Key} for representing the {@link ComparatorType}
* of a {@link BlockState}.
*
* @see ComparatorData
*/
public static final Key<Value<ComparatorType>> COMPARATOR_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"COMPARATOR_TYPE");
/**
* Represents the {@link Key} for representing the connected directions
* of a {@link BlockState}.
*
* @see ConnectedDirectionData#connectedDirections()
*/
public static final Key<SetValue<Direction>> CONNECTED_DIRECTIONS = DummyObjectProvider.createExtendedFor(Key.class,"CONNECTED_DIRECTIONS");
/**
* Represents the {@link Key} for representing the "connected to the east"
* of a {@link BlockState}.
*
* @see ConnectedDirectionData#connectedEast()
*/
public static final Key<Value<Boolean>> CONNECTED_EAST = DummyObjectProvider.createExtendedFor(Key.class,"CONNECTED_EAST");
/**
* Represents the {@link Key} for representing the "connected to the north"
* state of a {@link BlockState}.
*
* @see ConnectedDirectionData#connectedNorth()
*/
public static final Key<Value<Boolean>> CONNECTED_NORTH = DummyObjectProvider.createExtendedFor(Key.class,"CONNECTED_NORTH");
/**
* Represents the {@link Key} for representing the "connected to the south"
* state of a {@link BlockState}.
*
* @see ConnectedDirectionData#connectedSouth()
*/
public static final Key<Value<Boolean>> CONNECTED_SOUTH = DummyObjectProvider.createExtendedFor(Key.class,"CONNECTED_SOUTH");
/**
* Represents the {@link Key} for representing the "connected to the west"
* state of a {@link BlockState}.
*
* @see ConnectedDirectionData#connectedWest()
*/
public static final Key<Value<Boolean>> CONNECTED_WEST = DummyObjectProvider.createExtendedFor(Key.class,"CONNECTED_WEST");
/**
* Represents the {@link Key} for the amount of experience points stored
* by an {@link ExperienceOrb}.
*
* @see ExpOrbData#experience()
*/
public static final Key<MutableBoundedValue<Integer>> CONTAINED_EXPERIENCE = DummyObjectProvider.createExtendedFor(Key.class,"CONTAINED_EXPERIENCE");
/**
* Represents the {@link Key} for the type of {@link CookedFish} an
* {@link ItemStack} with {@link ItemTypes#COOKED_FISH} has.
*
* @see CookedFishData
*/
public static final Key<Value<CookedFish>> COOKED_FISH = DummyObjectProvider.createExtendedFor(Key.class,"COOKED_FISH");
/**
* Represents the {@link Key} for the amount of ticks a {@link Hopper} has
* to cool down before transferring the next item.
*
* @see CooldownData#cooldown()
*/
public static final Key<MutableBoundedValue<Integer>> COOLDOWN = DummyObjectProvider.createExtendedFor(Key.class,"COOLDOWN");
/**
* Represents the {@link Key} for whether a {@link Creeper} is charged.
*
* @see ChargedData#charged()
*/
public static final Key<Value<Boolean>> CREEPER_CHARGED = DummyObjectProvider.createExtendedFor(Key.class,"CREEPER_CHARGED");
/**
* Represents the {@link Key} for whether the next attack of an
* {@link Entity} will be a critical hit.
*
* @see CriticalHitData#criticalHit()
*/
public static final Key<Value<Boolean>> CRITICAL_HIT = DummyObjectProvider.createExtendedFor(Key.class,"CRITICAL_HIT");
/**
* Represents the {@link Key} for whether a custom name is visible on an
* {@link Entity}.
*
* @see CustomNameVisibleData#customNameVisible()
*/
public static final Key<Value<Boolean>> CUSTOM_NAME_VISIBLE = DummyObjectProvider.createExtendedFor(Key.class,"CUSTOM_NAME_VISIBLE");
/**
* Represents the {@link Key} for the damage dealt towards entities of a
* specific {@link EntityType}. Types not present in this mapping will be
* dealt damage to according to {@link #ATTACK_DAMAGE}.
*
* @see DamagingData#damageForEntity()
*/
public static final Key<MapValue<EntityType, Double>> DAMAGE_ENTITY_MAP = DummyObjectProvider.createExtendedFor(Key.class,"DAMAGE_ENTITY_MAP");
/**
* Represents the {@link Key} for representing whether a {@link BlockState}
* will decay. This usually applies to {@link BlockTypes#LEAVES}.
*
* @see DecayableData#decayable()
*/
public static final Key<Value<Boolean>> DECAYABLE = DummyObjectProvider.createExtendedFor(Key.class,"DECAYABLE");
/**
* Represents the {@link Key} for the delay on a redstone repeater.
*
* @see DelayableData#delay()
*/
public static final Key<MutableBoundedValue<Integer>> DELAY = DummyObjectProvider.createExtendedFor(Key.class,"DELAY");
/**
* Represents the {@link Key} for representing the despawn delay
* of an {@link Item}.
*
* @see DespawnDelayData#delay()
*/
public static final Key<MutableBoundedValue<Integer>> DESPAWN_DELAY = DummyObjectProvider.createExtendedFor(Key.class,"DESPAWN_DELAY");
/**
* Represents the {@link Key} for representing the {@link Direction}
* of a {@link BlockState} or an {@link Entity}.
*
* @see DirectionalData#direction()
*/
public static final Key<Value<Direction>> DIRECTION = DummyObjectProvider.createExtendedFor(Key.class,"DIRECTION");
/**
* Represents the {@link Key} for representing the {@link DirtType}
* of a {@link BlockState}.
*
* @see DirtData
*/
public static final Key<Value<DirtType>> DIRT_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"DIRT_TYPE");
/**
* Represents the {@link Key} for representing the "disarmed" state
* of a {@link BlockState}. This usually applies to
* {@link BlockTypes#TRIPWIRE}s and {@link BlockTypes#TRIPWIRE_HOOK}s.
*
* @see DisarmedData#disarmed()
*/
public static final Key<Value<Boolean>> DISARMED = DummyObjectProvider.createExtendedFor(Key.class,"DISARMED");
/**
* Represents the {@link Key} for representing the {@link DisguisedBlockType}
* of a {@link BlockState}.
*
* @see DisguisedBlockData
*/
public static final Key<Value<DisguisedBlockType>> DISGUISED_BLOCK_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"DISGUISED_BLOCK_TYPE");
/**
* Represents the {@link Key} for the display name of an {@link Entity},
* {@link ItemStack} or {@link TileEntity}.
*
* <p>On a {@link ItemTypes#WRITTEN_BOOK} item this will also set the title
* of the book.</p>
*
* @see DisplayNameData#displayName()
*/
public static final Key<Value<Text>> DISPLAY_NAME = DummyObjectProvider.createExtendedFor(Key.class,"DISPLAY_NAME");
/**
* Represents the {@link Key} for representing the dominant {@link HandPreference}
* of a {@link Living} entity.
*
* <p><em>NOTE:</em> Does not apply to {@link Player}s as their
* {@link HandPreference} can not be changed server-side.
* See {@link DominantHandProperty}.</p>
*
* @see DominantHandData#dominantHand()
*/
public static final Key<Value<HandPreference>> DOMINANT_HAND = DummyObjectProvider.createExtendedFor(Key.class,"DOMINANT_HAND");
/**
* Represents the {@link Key} for representing the {@link DoublePlantType}
* of a {@link BlockState}.
*
* @see DoublePlantData
*/
public static final Key<Value<DoublePlantType>> DOUBLE_PLANT_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"DOUBLE_PLANT_TYPE");
/**
* Represents the {@link Key} for the color of a dyeable block, item or
* entity.
*
* @see DyeableData
*/
public static final Key<Value<DyeColor>> DYE_COLOR = DummyObjectProvider.createExtendedFor(Key.class,"DYE_COLOR");
/**
* Represents the {@link Key} for representing the age of
* an {@link EndGateway}.
*
* @see EndGatewayData#age()
*/
public static final Key<Value<Long>> END_GATEWAY_AGE = DummyObjectProvider.createExtendedFor(Key.class,"END_GATEWAY_AGE");
/**
* Represents the {@link Key} for representing the teleport cooldown of
* an {@link EndGateway}.
*
* @see EndGatewayData#teleportCooldown()
*/
public static final Key<Value<Integer>> END_GATEWAY_TELEPORT_COOLDOWN = DummyObjectProvider.createExtendedFor(Key.class,"END_GATEWAY_TELEPORT_COOLDOWN");
/**
* Represents the {@link Key} for representing if the exact teleport location
* should be used with a {@link EndGateway}.
*
* @see EndGatewayData#exactTeleport()
*/
public static final Key<Value<Boolean>> EXACT_TELEPORT = DummyObjectProvider.createExtendedFor(Key.class,"EXACT_TELEPORT");
/**
* Represents the {@link Key} for the current level of exhaustion of a
* {@link Humanoid}.
*
* <p>Exhaustion will <em>decrease</em> on activities like walking, running
* or jumping. Once it reaches 0, the {@link #SATURATION} will decrease and
* the exhaustion level will be reset to its maximum.</p>
*
* @see FoodData#exhaustion()
*/
public static final Key<MutableBoundedValue<Double>> EXHAUSTION = DummyObjectProvider.createExtendedFor(Key.class,"EXHAUSTION");
/**
* Represents the {@link Key} for representing the exit
* portal {@link Vector3i location} of an {@link EndGateway}.
*
* @see EndGatewayData#exitPosition()
*/
public static final Key<Value<Vector3i>> EXIT_POSITION = DummyObjectProvider.createExtendedFor(Key.class,"EXIT_PORTAL");
/**
* Represents the {@link Key} for the total experience a {@link Player}
* requires to advance from his current level to the next one.
*
* @see ExperienceHolderData#getExperienceBetweenLevels()
*/
public static final Key<ImmutableBoundedValue<Integer>> EXPERIENCE_FROM_START_OF_LEVEL = DummyObjectProvider.createExtendedFor(Key.class,"EXPERIENCE_FROM_START_OF_LEVEL");
/**
* Represents the {@link Key} for the current level a {@link Player} has.
*
* @see ExperienceHolderData#level()
*/
public static final Key<MutableBoundedValue<Integer>> EXPERIENCE_LEVEL = DummyObjectProvider.createExtendedFor(Key.class,"EXPERIENCE_LEVEL");
/**
* Represents the {@link Key} for the amount of experience a {@link Player}
* has collected towards the next level.
*
* @see ExperienceHolderData#experienceSinceLevel()
*/
public static final Key<MutableBoundedValue<Integer>> EXPERIENCE_SINCE_LEVEL = DummyObjectProvider.createExtendedFor(Key.class,"EXPERIENCE_SINCE_LEVEL");
/**
* Represents the {@link Key} for after how many ticks an entity or
* {@link Weather} will last before expiring.
*
* <p>Usually applies to {@link Endermite}s or {@link Item}s.</p>
*
* @see ExpirableData#expireTicks()
*/
public static final Key<MutableBoundedValue<Integer>> EXPIRATION_TICKS = DummyObjectProvider.createExtendedFor(Key.class,"EXPIRATION_TICKS");
/**
* Represents the {@link Key} for the radius of the {@link Explosion} to
* be created by detonating an {@link Explosive}.
*
* <p>May be absent if the explosion radius is unknown because it is either
* determined randomly at the time of the explosion or computed from the
* context in which the {@link Explosive} explodes.</p>
*
* @see ExplosionRadiusData#explosionRadius()
*/
public static final Key<OptionalValue<Integer>> EXPLOSION_RADIUS = DummyObjectProvider.createExtendedFor(Key.class,"EXPLOSION_RADIUS");
/**
* Represents the {@link Key} for representing whether a {@link Piston} is
* currently extended.
*
* @see ExtendedData#extended()
*/
public static final Key<Value<Boolean>> EXTENDED = DummyObjectProvider.createExtendedFor(Key.class,"EXTENDED");
/**
* Represents the {@link Key} for whether a {@link FallingBlock} will
* damage an {@link Entity} it lands on.
*
* @see FallingBlockData#canHurtEntities()
*/
public static final Key<Value<Boolean>> FALLING_BLOCK_CAN_HURT_ENTITIES = DummyObjectProvider.createExtendedFor(Key.class,"FALLING_BLOCK_CAN_HURT_ENTITIES");
/**
* Represents the {@link Key} for the {@link BlockState} of a
* {@link FallingBlock}.
*
* @see FallingBlockData#blockState()
*/
public static final Key<Value<BlockState>> FALLING_BLOCK_STATE = DummyObjectProvider.createExtendedFor(Key.class,"FALLING_BLOCK_STATE");
/**
* Represents the {@link Key} for how much damage a {@link FallingBlock}
* deals to {@link Living} entities it hits.
*
* <p>This damage is capped by {@link #MAX_FALL_DAMAGE}.</p>
*
* @see FallingBlockData#fallDamagePerBlock()
*/
public static final Key<MutableBoundedValue<Double>> FALL_DAMAGE_PER_BLOCK = DummyObjectProvider.createExtendedFor(Key.class,"FALL_DAMAGE_PER_BLOCK");
/**
* Represents the {@link Key} for representing the distance an entity has
* fallen.
*
* @see FallDistanceData#fallDistance()
*/
public static final Key<MutableBoundedValue<Float>> FALL_DISTANCE = DummyObjectProvider.createExtendedFor(Key.class,"FALL_DISTANCE");
/**
* Represents the {@link Key} for the amount of ticks a
* {@link FallingBlock} has been falling for.
*
* @see FallingBlockData#fallTime()
*/
public static final Key<Value<Integer>> FALL_TIME = DummyObjectProvider.createExtendedFor(Key.class,"FALL_TIME");
/**
* Represents the {@link Key} for representing the "filled" state
* of a {@link BlockState}.
*
* <p>Usually applies to {@link BlockTypes#END_PORTAL_FRAME}s.</p>
*
* @see FilledData#filled()
*/
public static final Key<Value<Boolean>> FILLED = DummyObjectProvider.createExtendedFor(Key.class,"FILLED");
/**
* Represents the {@link Key} for the {@link FireworkEffect}s of a
* {@link ItemTypes#FIREWORK_CHARGE}, {@link ItemTypes#FIREWORKS} or a
* {@link Firework}.
*
* @see FireworkEffectData#effects()
*/
public static final Key<ListValue<FireworkEffect>> FIREWORK_EFFECTS = DummyObjectProvider.createExtendedFor(Key.class,"FIREWORK_EFFECTS");
/**
* Represents the {@link Key} for the flight duration of a firework.
*
* <p>The duration is tiered and will stay partially random. A rocket will
* fly for roughly {@code modifier * 10 + (random number from 0 to 13)}
* ticks in Vanilla Minecraft.</p>
*
* @see FireworkRocketData#flightModifier()
*/
public static final Key<MutableBoundedValue<Integer>> FIREWORK_FLIGHT_MODIFIER = DummyObjectProvider.createExtendedFor(Key.class,"FIREWORK_FLIGHT_MODIFIER");
/**
* Represents the {@link Key} for the delay in ticks until the
* {@link Entity} will be damaged by the fire.
*
* @see IgniteableData#fireDelay()
*/
public static final Key<MutableBoundedValue<Integer>> FIRE_DAMAGE_DELAY = DummyObjectProvider.createExtendedFor(Key.class,"FIRE_DAMAGE_DELAY");
/**
* Represents the {@link Key} for the amount of ticks an
* {@link Entity} is still burning.
*
* @see IgniteableData#fireTicks()
*/
public static final Key<MutableBoundedValue<Integer>> FIRE_TICKS = DummyObjectProvider.createExtendedFor(Key.class,"FIRE_TICKS");
/**
* Represents the {@link Key} for the time a {@link Player} first played
* on the Server.
*
* @see JoinData#firstPlayed()
*/
public static final Key<Value<Instant>> FIRST_DATE_PLAYED = DummyObjectProvider.createExtendedFor(Key.class,"FIRST_DATE_PLAYED");
/**
* Represents the {@link Key} for the {@link Fish} type an {@link Item} or
* {@link ItemStack} may have.
*
* <p>Only for {@link ItemTypes#FISH}, for {@link ItemTypes#COOKED_FISH}
* see {@link #COOKED_FISH}.</p>
*
* @see FishData
*/
public static final Key<Value<Fish>> FISH_TYPE = DummyObjectProvider.createExtendedFor(Key.class,"FISH_TYPE");
/**
* Represents the {@link Key} for representing the
* {@link FluidStackSnapshot} contained within an item container. Item
* containers may include buckets and other mod added items.
*
* @see FluidItemData#fluid()
*/
public static final Key<Value<FluidStackSnapshot>> FLUID_ITEM_STACK = DummyObjectProvider.createExtendedFor(Key.class,"FLUID_ITEM_STACK");
/**
* Represents the {@link Key} for representing the "fluid level" state
* of a {@link BlockState}.
*
* @see FluidLevelData#level()
*/
public static final Key<MutableBoundedValue<Integer>> FLUID_LEVEL = DummyObjectProvider.createExtendedFor(Key.class,"FLUID_LEVEL");
/**
* Represents the {@link Key} for representing the directional tank
* information.
*
* @see FluidTankData#fluids()
*/
public static final Key<MapValue<Direction, List<FluidStackSnapshot>>> FLUID_TANK_CONTENTS = DummyObjectProvider.createExtendedFor(Key.class,"FLUID_TANK_CONTENTS");
/**
* Represents the {@link Key} for the speed at which an entity flies.
*
* @see MovementSpeedData#flySpeed()
*/
public static final Key<Value<Double>> FLYING_SPEED = DummyObjectProvider.createExtendedFor(Key.class,"FLYING_SPEED");
/**
* Represents the {@link Key} for the food level of a {@link Humanoid}.
*
* @see FoodData#foodLevel()
*/
public static final Key<MutableBoundedValue<Integer>> FOOD_LEVEL = DummyObjectProvider.createExtendedFor(Key.class,"FOOD_LEVEL");
/**
* Represents the {@link Key} for the time a {@link FusedExplosive}'s fuse
* will burn before the explosion.
*
* @see FuseData#fuseDuration()
*/
public static final Key<Value<Integer>> FUSE_DURATION = DummyObjectProvider.createExtendedFor(Key.class,"FUSE_DURATION");
/**
* Represents the {@link Key} for the {@link GameMode} a {@link Humanoid}
* has.
*
* @see GameModeData
*/
public static final Key<Value<GameMode>> GAME_MODE = DummyObjectProvider.createExtendedFor(Key.class,"GAME_MODE");
/**
* Represents the {@link Key} for the generation of a
* {@link ItemTypes#WRITTEN_BOOK}. Depending on the book's generation
* it may be impossible to copy it.
*
* @see GenerationData#generation()
*/
public static final Key<MutableBoundedValue<Integer>> GENERATION = DummyObjectProvider.createExtendedFor(Key.class,"GENERATION");
/**
* Represents the {@link Key} for representing whether an entity has a
* glowing outline.
*
* @see GlowingData#glowing()
*/
public static final Key<Value<Boolean>> GLOWING = DummyObjectProvider.createExtendedFor(Key.class,"GLOWING");
/**
* Represents the {@link Key} for the type of a
* {@link ItemTypes#GOLDEN_APPLE}.
*
* @see GoldenAppleData