Commit Graph

106 Commits

Author SHA1 Message Date
TheMode
60385c0887
Merge pull request #141 from MrBretze/master
Fixed somme read for NBT Tag to ItemStack
2021-02-22 14:03:48 +01:00
ALS
12f0190f97 Revert AttributeSlot.parse(String string) 2021-02-21 16:56:06 +01:00
ALS
0f9a2b5b4f Fixed a possible null for attributeSlot 2021-02-20 20:39:49 +01:00
ALS
ac7ca6f8e4 Fixed somme read for NBT Tag to ItemStack 2021-02-20 17:35:02 +01:00
themode
f7aeeabe9c Override ItemStack#equals 2021-02-07 19:38:14 +01:00
jglrxavpok
da3a8b17b2 Add FireworkMeta#getFlightDuration 2021-02-05 12:18:05 +01:00
Tyan
855c8af455 Added ExceptionManager for custom exception handling 2021-01-20 11:43:45 +01:00
LeoDog896
5419530125 Enchanted book and Colored StringBuilder 2021-01-15 22:03:44 -05:00
LeoDog896
fec05d6838 More fastutil usages 2021-01-15 16:04:57 -05:00
LeoDog896
3536bdc856 Microoptimization cleanup
Just some small microoptimizations including preferring fastutils, Removing unnecessary checks already dealt with using @NotNull, all since I had extra unplanned free time.
2021-01-15 11:08:11 -05:00
themode
d5da334c25 Item lore cannot be null (but empty) 2021-01-13 03:42:31 +01:00
Matt Worzala
46ac38d5b3
Change ColoredText usages to JsonMessage 2020-12-31 13:53:21 -05:00
themode
3c871ed603 Fix NPE in CrossbowMeta 2020-12-29 15:16:51 +01:00
Matt Worzala
071a2ce196
Change ArrayList types to List 2020-12-28 14:57:39 -05:00
R0bbyYT
f58dcbda46 FireworkMeta uses CopyOnWriteArrayList instead of ArrayList, removes #getOwningPlayer() 2020-12-25 10:40:02 +01:00
R0bbyYT
724f0b9c7a Adds some documentation 2020-12-24 15:29:34 +01:00
R0bbyYT
58c7ad9e02 Implements PlayerHeadMeta, FireworkMeta and FireworkEffectMeta 2020-12-23 02:24:41 +01:00
themode
604d10a06c Fix WritableBookMeta cloning 2020-12-15 08:55:29 +01:00
themode
a3613bff89 Use CloneUtils for deep copy 2020-12-15 03:40:07 +01:00
themode
69d4792191 WIP collection deep cloning. Starting with PotionMeta 2020-12-15 03:29:47 +01:00
themode
bdcb708195 Fix CompassMeta 2020-12-12 23:15:33 +01:00
Felix Cravic
f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic
f39f6444d7 PublicCloneable and support for ItemMeta#clone 2020-12-09 21:15:02 +01:00
Felix Cravic
cea3b8b593 WIP removal of #copy for #clone 2020-12-09 20:51:40 +01:00
Felix Cravic
ff4580c41b Prevent unnecessary item copy during drop 2020-12-07 23:57:57 +01:00
R0bbyYT
a1ef2b21c3 The leather armor pieces are now correctly colored 2020-12-05 20:45:54 +01:00
themode
ab98c11de3 ItemStack#isSimilar should return true if both items have the same identifier 2020-11-21 11:42:47 +01:00
themode
404ddb5bf9 Added a new item data ownership system, replacing the old nbt consumer and NbtDataImpl 2020-11-21 06:37:44 +01:00
themode
310733b747 Fixed stacking not working with NbtDataImpl 2020-11-16 07:40:45 +01:00
themode
224626bdbd Added NbtDataImpl to support writing custom item NBT data to the client 2020-11-07 19:39:22 +01:00
themode
0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode
4375a8734d Add comment to signal how to make a "null" ItemStack 2020-10-31 01:41:46 +01:00
Alex K
6070d002d9 Changed DEFAULT_STACKING_RULE's maxSize from 127 to 64 2020-10-25 14:44:40 -06:00
themode
26e8dae452 Use JsonMessage in WrittenBookMeta 2020-10-24 23:16:39 +02:00
themode
2f21a7c233 More annotations. 2020-10-24 11:19:54 +02:00
themode
3d96b7a4b4 A lot of annotations a bit everywhere. 2020-10-24 10:46:23 +02:00
themode
3db964f817 Removes debug #clone print 2020-10-22 19:22:58 +02:00
themode
34e7bfe69d Reduces the number of ItemStack#clone calls in inventory clicks 2020-10-22 19:18:08 +02:00
themode
3cb880cf80 General cleanup 2020-10-22 12:55:53 +02:00
themode
b2e3d3e78d Use negative entity id for the custom breaking system 2020-10-19 11:56:26 +02:00
themode
e1093769e5 Added potion color + fix clone/similar 2020-10-16 16:47:03 +02:00
themode
0b6a063311 Added support for CustomPotionEffect in PotionMeta 2020-10-16 16:32:57 +02:00
jglrxavpok
8561e0cddc Fix exception when reading compass with no lodestone linked to it 2020-10-16 12:39:17 +02:00
jglrxavpok
dd0f2ea293 Fix exception when reading map decoration with no position 2020-10-16 12:35:17 +02:00
themode
660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode
3663a292f1 Comments for the inventories classes 2020-10-14 16:41:36 +02:00
themode
bf0ec9f133 Added ItemStack#setMaterial and information about automatic refresh 2020-10-14 16:33:32 +02:00
themode
5f7261cd6e Comments 2020-10-11 18:35:32 +02:00
themode
857d3f0c6e Added ItemStack#getAttribute 2020-10-05 01:46:02 +02:00
themode
683415e75e Fixed item attributes not showing in-game 2020-10-04 03:04:51 +02:00