4426 Commits

Author SHA1 Message Date
DerFrZocker
9608279815
#1403, 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:55 +10:00
DerFrZocker
94e44ec934
#1401: Add a config option to accept old keys in registry get calls 2024-05-29 06:45:14 +10:00
MetallicGoat
a43701920b
#1402: Fix ChunkSnapshot#isSectionEmpty() is always false 2024-05-23 21:14:56 +10:00
DerFrZocker
87d0a3368a
SPIGOT-7668: Move NONE Registry updater to FieldRename to avoid some class loader issues 2024-05-19 21:35:46 +02:00
md_5
ba2d49d21e
Increase outdated build delay 2024-05-13 21:21:16 +10:00
md_5
4af0f22e8a
SPIGOT-7664: Item meta should prevail over block states 2024-05-10 19:33:23 +10:00
md_5
c2ccc46ec3
SPIGOT-7666: Fix access to llama and horse special slot 2024-05-10 19:23:01 +10:00
Doc
124ac66d74
SPIGOT-7665: Fix ThrownPotion#getEffects() implementation only bringing custom effects 2024-05-10 19:09:20 +10:00
md_5
66f1f439aa
Restore null page behaviour of signed books even though not strictly allowed by API 2024-05-10 19:08:54 +10:00
md_5
c1a26b366b
Fix unnecessary and potential not thread-safe chat visibility check 2024-05-07 21:40:57 +10:00
md_5
12360a7ece
Remove unused imports 2024-05-06 20:30:27 +10:00
2008Choco
147b098b48
#1397: Add ItemMeta#getAsComponentString() 2024-05-06 20:23:39 +10:00
md_5
428aefe0e4
Largely restore deprecated PotionData API 2024-05-05 20:45:48 +10:00
Jishuna
afe5b5ee93
#1275: 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:54 +10:00
Doc
8afeafa7d0
SPIGOT-1166, SPIGOT-7647: Expose Damager BlockState in EntityDamageByBlockEvent 2024-05-05 09:34:57 +10:00
DerFrZocker
4e7d749d4c
SPIGOT-6993: Allow #setVelocity to change the speed of a fireball and add a note to #setDirection about it 2024-05-04 19:34:27 +10:00
md_5
4418807574
Support both entity_data and bucket_entity_data on axolotl/fish buckets 2024-05-04 14:25:29 +10:00
md_5
f2182ed473
SPIGOT-7659: TropicalFishBucketMeta should use BUCKET_ENTITY_DATA 2024-05-04 08:49:06 +10:00
DerFrZocker
2a6207fe15
#1393: Improve field rename handling and centralize conversion between bukkit and string more 2024-05-04 08:19:07 +10:00
Doc
c024a50393
SPIGOT-7650: Add DamageSource for EntityDeathEvent and PlayerDeathEvent 2024-05-04 08:16:00 +10:00
Doc
741b844806
#1390: Improve internal handling of damage sources 2024-05-04 08:15:51 +10:00
md_5
66fd94322c
SPIGOT-7652: Remove remap for SPELL_MOB_AMBIENT which no longer exists 2024-05-02 21:26:08 +10:00
md_5
ecfa4f9734
SPIGOT-7654: ItemStack#isSimilar does not work with empty BlockStateMeta 2024-05-02 21:22:32 +10:00
md_5
4460ecc49e
SPIGOT-7655: ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set 2024-05-02 21:00:12 +10:00
Doc
5d84f48a40
SPIGOT-7653: Update ApiVersion.CURRENT with latest version and include tests 2024-05-02 07:00:16 +10:00
md_5
df83bfa1ee
Update to Minecraft 1.20.6 2024-04-30 06:15:00 +10:00
md_5
bb9a6e9904
SPIGOT-7646: Don't duplicate PDC in customTag / retain old values 2024-04-29 07:38:24 +10:00
md_5
91b1fc3f1c
SPIGOT-7644: Fix ItemMeta#getAsString 2024-04-28 07:41:53 +10:00
DerFrZocker
ad549847ee
Open a direct connection instead of pinging mojang server to check if it is reachable 2024-04-26 09:16:58 +02:00
md_5
661afb43c3
SPIGOT-7633: Clearer error message for missing particle data 2024-04-25 16:38:33 +10:00
md_5
590cf09a8e
Fix unit tests always seeing Mojang server as unavailable 2024-04-25 16:26:03 +10:00
md_5
7c7ac5eb24
SPIGOT-7636: Fix clearing ItemMeta 2024-04-25 16:15:01 +10:00
md_5
4a72905cf7
SPIGOT-7635: Fix Player#transfer and cookie methods 2024-04-25 15:31:25 +10:00
md_5
ebb50e1365
Fix incorrect Vault implementation 2024-04-25 10:31:36 +10:00
md_5
6f00f0608a
SPIGOT-7632: Control middle clicking chest does not copy contents 2024-04-25 08:41:39 +10:00
DerFrZocker
0297f87bb0
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
- Fix Attribute rename (CraftBukkit only)
- Add rename routing validation (CraftBukkit only)
2024-04-25 07:49:44 +10:00
md_5
2d03bdf6aa
SPIGOT-7629: Fix loading banner patterns 2024-04-25 07:45:19 +10:00
md_5
e77951fac9
Fix equality of deserialized display names 2024-04-25 07:26:05 +10:00
md_5
c66f3e4fdb
SPIGOT-7631: Fix deserialisation of BlockStateMeta 2024-04-25 07:26:03 +10:00
DerFrZocker
8c1e7c8410
#1384: Disable certain PlayerProfile tests, if Mojang's services or internet are not available 2024-04-24 18:12:31 +10:00
md_5
ced93d572d
SPIGOT-7626: sendSignChange() has no effect 2024-04-24 18:10:39 +10:00
DerFrZocker
c77362caeb
SPIGOT-7625: ItemStack with lore cannot be serialized in 1.20.5 2024-04-24 17:53:14 +10:00
md_5
062d2bb13b
SPIGOT-7621: Fix empty strings in item lore 2024-04-24 08:12:08 +10:00
md_5
3b72391602
SPIGOT-7622: Fix error with Player#sendSignChange 2024-04-24 08:12:04 +10:00
md_5
b3229d15aa
Fix cosmetic typo in exception message 2024-04-24 04:27:08 +10:00
DerFrZocker
5d57527c2a
#1380: Change wolf variant from enum to interface 2024-04-24 04:22:03 +10:00
2008Choco
48f96fbbbd
#1379: Rename FoodMeta#get/setSaturationModifier() to #get/setSaturation() 2024-04-24 02:32:48 +10:00
Jishuna
8d3e67d865
#1378: Add methods to convert between an entity and a SNBT string 2024-04-24 01:15:00 +10:00
DerFrZocker
801767ed80
SPIGOT-5336: Field name parity with Minecraft keys 2024-04-24 01:15:00 +10:00
DerFrZocker
2f35ed0c45
#1328: Rename CraftArrow to CraftAbstractArrow and CraftTippedArrow to CraftArrow to better reflect Bukkit's names 2024-04-24 01:15:00 +10:00