Commit graph

3010 commits

Author SHA1 Message Date
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
Jishuna
664548f4ec
#994: Add methods to convert between an entity and a string 2024-04-24 01:15:00 +10:00
DerFrZocker
8a34e00914
SPIGOT-5336: Field name parity with Minecraft keys 2024-04-24 01:15:00 +10:00
DerFrZocker
aa0d3da263
#977: Remove legacy Particle values 2024-04-24 01:15:00 +10:00
md_5
1113e50a39
Update to Minecraft 1.20.5 2024-04-24 01:15:00 +10:00
2008Choco
0a850d95d9
#993: Deprecate Command's permission message methods as they no longer work
Ever since Mojang's introduction of Brigadier in 1.13, the client is not
sent any commands to which it does not have permission to execute. If a
client executes a command it is not aware of (and consequently does not
have permission for), the client will send itself instead of forwarding
the failure to the server for its response.
2024-04-20 11:26:09 +10:00
2008Choco
20cf5b3d4f
SPIGOT-7613: Make note of impact of mobGriefing gamerule for World#createExplosion() 2024-04-17 19:13:27 +10:00
md_5
6cc615e662
Improve documentation of Enchantment#values() 2024-04-17 19:11:14 +10:00
md_5
507052e112
Remove no longer required deprecation on display color APIs 2024-04-14 17:00:24 +10:00
MikChan
729fc6a80b
#991: Add PluginManager#loadPlugins(File[]) 2024-04-13 17:01:48 +10:00
lbenav8095
624c810c36
#982: Add API to copy BlockState to a new Location 2024-04-07 12:22:08 +10:00
2008Choco
9756fccce8
#986: Add more Conduit API 2024-04-07 12:05:21 +10:00
Flo0
f02baa3869
#988: Add World#getIntersectingChunks(BoundingBox) 2024-04-01 09:43:44 +11:00
md_5
9321d665f5
Move getItemInUse up to LivingEntity 2024-03-30 12:54:23 +11:00
gIsForGravity
819eef734f
#959: Add access to current item's remaining ticks 2024-03-30 12:54:17 +11:00
md_5
c4fdadb0c9
SPIGOT-7601: Add AbstractArrow#getItem 2024-03-30 12:17:54 +11:00