Commit graph

2975 commits

Author SHA1 Message Date
md_5
17f7097c13
Clarify ambiguity around what is API 2024-06-18 06:45:40 +10:00
Miles Holder
71714f0c11
Remove note from InventoryView JavaDoc 2024-06-17 15:35:59 -05:00
2008Choco
aaf497316e
#1030: Deprecate more unused methods in UnsafeValues 2024-06-17 20:56:15 +10:00
md_5
3a9dc6890e
SPIGOT-7771: Material.getDefaultAttributes always returns an empty map 2024-06-17 19:44:09 +10:00
Miles Holder
2b4b6d1424
#1023: Convert InventoryView to interface 2024-06-16 08:47:34 +10:00
Doc
e2160a1865
Make MapCursor#type not depends on deprecated values 2024-06-14 15:34:04 -04:00
md_5
befcf86d22
SPIGOT-7740: Fix using new map cursor types 2024-06-14 07:09:19 +10:00
Doc
0922909504
Add EntityDamageEvent.DamageCause#CAMPFIRE 2024-06-13 12:21:46 -04:00
md_5
b0a1d5b748
Update to Minecraft 1.21 2024-06-14 01:05:00 +10:00
md_5
376e37db4b
SPIGOT-7677: Update which entities are marked as spawnable 2024-06-12 07:16:40 +10:00
md_5
06c4add3a9
SPIGOT-7737: Add separate TreeType.MEGA_PINE 2024-06-11 21:04:52 +10:00
Doc
19b7caaabe
SPIGOT-7731: Spawn eggs cannot have damage 2024-06-10 14:06:27 +10:00
Jishuna
e585297ede
#1022: Add force option to Player#spawnParticle 2024-06-08 09:11:25 +10:00
MetallicGoat
d26e0094d5
#1018: Add methods to get players seeing specific chunks 2024-06-08 09:03:39 +10:00
mfnalex
8df1ed1847
#978: Add Material#isCompostable and Material#getCompostChance 2024-06-05 07:15:46 +10:00
DerFrZocker
4b9b59c797
SPIGOT-7676: Enforce locale parameter in toLowerCase and toUpperCase method calls and always use root locale 2024-06-03 07:18:14 +10:00
DerFrZocker
8d1e700a06
#1020: Cast instead of using #typed when getting BlockType and ItemType to better work with testing / mocks 2024-06-03 07:15:10 +10:00
DerFrZocker
fa28607adb
#1016: Fix incorrect assumption of Fireball having constant speed 2024-05-29 06:56:40 +10:00
2008Choco
4c6c8586bb
#1015: Add a tool component to ItemMeta
Co-authored-by: md_5 <git@md-5.net>
2024-05-29 06:53:57 +10:00
2008Choco
6f6b2123bf
#1014: Add PotionEffectTypeCategory to distinguish between beneficial and harmful effects 2024-05-29 06:50:05 +10:00
DerFrZocker
f511cfe1f1
#1013, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation for the switch to ItemType and BlockType
This also moves the conversion from and to legacy material to the method
calls of legacy plugins, and no longer allows them directly in the
server.

This has the side effect of fixing some legacy plugin issues, such as
SPIGOT-4288, SPIGOT-6161. Also fixes legacy items sometimes not stacking
in inventory when using addItem, a client disconnect when using legacy
items in recipes and probably some more.
2024-05-29 06:48:52 +10:00
Doc
def44cbfdd
SPIGOT-7669: Fix typo in ProjectileHitEvent#getHitBlockFace documentation 2024-05-20 21:56:11 +10:00
2008Choco
53fa4f726f
#1011: Throw an exception if a RecipeChoice is ever supplied air
This would otherwise crash the client.
2024-05-14 19:52:25 +10:00
2008Choco
fa99e752ae
#1007: Add ItemMeta#getAsComponentString() 2024-05-06 20:23:36 +10:00
md_5
94a9178282
Fix copy-pasted BlockType.Typed documentation 2024-05-06 20:20:54 +10:00
md_5
9b34ac8cc0
Largely restore deprecated PotionData API 2024-05-05 20:45:43 +10:00
2008Choco
51a6449bce
#1008: Deprecate ITEMS_TOOLS, removed in 1.20.5 2024-05-05 10:42:08 +10:00
md_5
702d15fea4
Fix Javadoc reference 2024-05-05 10:18:53 +10:00
Jishuna
42f6cdf4c5
#919: Add internal ItemType and BlockType, delegate Material methods to them
Co-authored-by: Bjarne Koll <lynxplay101@gmail.com>
Co-authored-by: DerFrZocker <derrieple@gmail.com>
Co-authored-by: md_5 <git@md-5.net>
2024-05-05 10:08:51 +10:00
Doc
237bb37bb3
SPIGOT-1166, SPIGOT-7647: Expose Damager BlockState in EntityDamageByBlockEvent 2024-05-05 09:34:53 +10:00
DerFrZocker
035ea14660
SPIGOT-6993: Allow #setVelocity to change the speed of a fireball and add a note to #setDirection about it 2024-05-04 19:34:24 +10:00
DerFrZocker
8c7880fb60
#1004: Improve field rename handling and centralize conversion between bukkit and string more 2024-05-04 08:19:04 +10:00
Doc
87c90e9363
SPIGOT-7650: Add DamageSource for EntityDeathEvent and PlayerDeathEvent 2024-05-04 08:15:58 +10:00
md_5
ac72b19b01
Update to Minecraft 1.20.6 2024-04-30 06:15:00 +10:00
2008Choco
6bfe91ae21
SPIGOT-7617: Add BlockExplodeEvent#getExplodedBlockState() 2024-04-29 20:08:52 +10:00
2008Choco
304e83eb38
#1002: Improve documentation and implementation of getMaxStackSize 2024-04-28 09:11:30 +10:00
DerFrZocker
e8215ea200
SPIGOT-7638: Library loader does not seem to resolve every dependency 2024-04-27 09:23:19 +10:00
DerFrZocker
79c595c0c3
SPIGOT-7637: Bad logic in checking nullability of AttributeModifier slots
Also fix Class loading order issues, which resulted in EquipmentSlot#getGroup returning null, since EquipmentSlot and EquipmentSlotGroup referencing each other on class init.
This caused EquipmentSlot to being init first, when the fields in EquipmentSlotGroup are still null, resulting in the group being null.
2024-04-25 21:06:52 +02:00
md_5
69fa46950c
Add some missing deprecation annotations 2024-04-25 10:27:43 +10:00
md_5
f850da2e36
Update Maven plugins/versions 2024-04-25 10:27:40 +10:00
md_5
8d8400db56
Use regular compiler seeing as ECJ doesn't support Java 21 JRE 2024-04-25 07:49:52 +10:00
md_5
c29e1688d1
Revert "BUILDTOOLS-676: Downgrade Maven compiler version"
This reverts commit fc1f96cfad.
2024-04-25 07:49:51 +10:00
DerFrZocker
07bce714f4
SPIGOT-7355: More field renames and fixes
- Rename MapCursor Types to match their Minecraft names
- SPIGOT-7355: Rename ItemFlag#HIDE_POTION_EFFECTS to better reflect its function
2024-04-25 07:49:38 +10:00
md_5
6a8ea76458
Fix bad merge in penultimate commit 2024-04-24 18:56:26 +10:00
md_5
50a7920c5a
Fix imports in previous commit 2024-04-24 18:51:23 +10:00
2008Choco
83640dd19e
#995: Add required feature to MinecraftExperimental for easy lookups 2024-04-24 18:19:37 +10:00
md_5
fc1f96cfad
BUILDTOOLS-676: Downgrade Maven compiler version 2024-04-24 11:05:43 +10:00
DerFrZocker
9ea9bb32fe
#997: Change wolf variant from enum to interface 2024-04-24 04:21:58 +10:00
2008Choco
8cd1d01d33
#996: Rename FoodMeta#get/setSaturationModifier() to #get/setSaturation() 2024-04-24 02:32:44 +10:00
md_5
d514cfb3c9
Fix JavaDoc errors 2024-04-24 01:47:31 +10:00