Commit graph

2987 commits

Author SHA1 Message Date
antiPerson
b9f5748626
SPIGOT-7799, #1039: Expose explosion world interaction in EntityExplodeEvent and BlockExplodeEvent 2024-07-06 17:19:42 +10:00
DerFrZocker
7983b96663
#1029: Trial changing a small number of inner enums to classes/interfaces to better support custom values
This PR is a subset of the enum PR #660 and is designed as a low impact
trial run of the design and backwards compatibility to inform subsequent
development.

Additional plugin compatibility features may be available by setting
`settings.compatibility.enum-compatibility-mode` to `true` in
`bukkit.yml`.
2024-07-06 17:14:17 +10:00
Phoenix616
e86f4dc4bb
#1041: Improve getPlayer(String) docs to clarify it matches the name 2024-07-03 20:30:38 +10:00
md_5
9738f00514
Fix spawner API documentation 2024-06-28 07:17:26 +10:00
Doc
69ebd9fd05
#1034: Add TrialSpawnerSpawnEvent 2024-06-28 07:06:33 +10:00
coll1234567
23cffd9cff
#973: Improve spawner API and add API for Trial Spawners 2024-06-28 07:06:14 +10:00
Miles Holder
8bf19163e5
#1038: Clarify HumanEntity#openInventory(InventoryView) JavaDoc 2024-06-22 18:48:49 +10:00
LoliColleen
1ff7635160
SPIGOT-7732, SPIGOT-7786: Add freezing damage modifier 2024-06-22 18:46:39 +10:00
Doc
02161cb4b4
#1034: Add CreatureSpawnEvent.SpawnReason#TRIAL_SPAWNER 2024-06-19 19:18:42 +10:00
md_5
f9cb6f3412
SPIGOT-7777: All entity potion effects are removed on death 2024-06-19 07:09:58 +10:00
Doc
25d548eb23
#1031: Expose Creeper igniter 2024-06-19 06:45:43 +10:00
2008Choco
ccbf091556
SPIGOT-7770: Reserve spaces in shaped recipes for blank ingredients 2024-06-18 19:06:03 +10:00
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