Commit graph

4479 commits

Author SHA1 Message Date
CraftBukkit/Spigot
a45c5c5316 Fix cosmetic typo in exception message
By: md_5 <git@md-5.net>
2024-04-24 04:27:08 +10:00
CraftBukkit/Spigot
347f0eff78 #1380: Change wolf variant from enum to interface
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 04:22:03 +10:00
CraftBukkit/Spigot
f7de208151 #1379: Rename FoodMeta#get/setSaturationModifier() to #get/setSaturation()
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-04-24 02:32:48 +10:00
CraftBukkit/Spigot
85591014c5 #1378: Add methods to convert between an entity and a SNBT string
By: Jishuna <joshl5324@gmail.com>
2024-04-24 01:15:00 +10:00
CraftBukkit/Spigot
760899464e SPIGOT-5336: Field name parity with Minecraft keys
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 01:15:00 +10:00
CraftBukkit/Spigot
d122883f57 #1328: Rename CraftArrow to CraftAbstractArrow and CraftTippedArrow to CraftArrow to better reflect Bukkit's names
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 01:15:00 +10:00
CraftBukkit/Spigot
1b0447274f #1357: Remove legacy Particle values
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 01:15:00 +10:00
CraftBukkit/Spigot
65bc2541a3 Update to Minecraft 1.20.5
By: md_5 <git@md-5.net>
2024-04-24 01:15:00 +10:00
CraftBukkit/Spigot
4deda9501f Remove outdated build delay
By: md_5 <git@md-5.net>
2024-04-24 01:00:00 +10:00
CraftBukkit/Spigot
e6730f6daf SPIGOT-7613: Don't respect mobGriefing gamerule in World#createExplosion() without source entity
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-04-17 19:13:29 +10:00
CraftBukkit/Spigot
f127f9030d #1363: Add API to copy BlockState to a new Location
By: lbenav8095 <lubensaico@gmail.com>
2024-04-07 12:22:10 +10:00
CraftBukkit/Spigot
f2f79d2380 #1367: Add more Conduit API
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-04-07 12:05:25 +10:00
CraftBukkit/Spigot
d54bcadd91 SPIGOT-6705: Re-print tab completion "Display all" message in console, when another message is being logged
By: DerFrZocker <derrieple@gmail.com>
2024-04-07 11:54:28 +10:00
CraftBukkit/Spigot
84d43ef379 #1362: Include Creeper igniter in causing entity for damage events
By: Doc <nachito94@msn.com>
2024-04-07 11:49:28 +10:00
CraftBukkit/Spigot
779b5137f8 #1369: Add World#getIntersectingChunks(BoundingBox)
By: Flo0 <flo.roma@web.de>
2024-04-01 09:43:49 +11:00
CraftBukkit/Spigot
3f9e7c4e39 Move getItemInUse up to LivingEntity
By: md_5 <git@md-5.net>
2024-03-30 12:54:26 +11:00
CraftBukkit/Spigot
dd0e55721d #1331: Add access to current item's remaining ticks
By: gIsForGravity <gavin.f.tantleff@gmail.com>
2024-03-30 12:54:20 +11:00
CraftBukkit/Spigot
064114e718 SPIGOT-7601: Add AbstractArrow#getItem
By: md_5 <git@md-5.net>
2024-03-30 12:17:57 +11:00
CraftBukkit/Spigot
7afeda6ff8 SPIGOT-7602: Allow opening in-world horse and related inventories
By: md_5 <git@md-5.net>
2024-03-30 12:08:32 +11:00
CraftBukkit/Spigot
0ae1e62bfc SPIGOT-7608: Allow empty lists to morph to any PDT list
The minecraft serialisation logic for ListTag updates the type byte of
the list tag during writing to match either the first element in the
list or 0, if said list tag is empty.
As such, list content type information cannot be carried through a
write/read process, e.g. chunk load/unload or a creative client updating
the item.

The recently introduced persistent data type collections for lists hence
can also not enforce a specific list content type if the found list is
empty, which it currently attempts to do.
As such, a call to PersistentDataContainer#has would also yield false
for any empty list as the lists type byte would be 0.

The faulty behaviour has been fixed by considering an empty list in the
persistent data container to match any list type.
This change, while technically breaking the #has check, is needed and
reasonable as the #has check for this is currently broken in the first
place as described above.

By: Bjarne Koll <lynxplay101@gmail.com>
2024-03-30 10:46:03 +11:00
CraftBukkit/Spigot
e0274e7202 Add support for Java 22
By: md_5 <git@md-5.net>
2024-03-29 21:23:37 +11:00
CraftBukkit/Spigot
0223e7ff73 SPIGOT-7604: Revert "SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime"
This reverts commit 13b4e915a0.

By: md_5 <git@md-5.net>
2024-03-20 20:31:48 +11:00
CraftBukkit/Spigot
13b4e915a0 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime
By: LoliColleen <76620594+LoliColleen@users.noreply.github.com>
2024-03-17 11:39:04 +11:00
CraftBukkit/Spigot
434aec3832 #1361: Add more translation keys
By: Miles Holder <mwholder2005@gmail.com>
2024-03-17 10:26:55 +11:00
CraftBukkit/Spigot
d76a8e373b SPIGOT-7600: EntityChangeBlockEvent is not fired for frog eggs
By: md_5 <git@md-5.net>
2024-03-11 15:09:39 +11:00
CraftBukkit/Spigot
4624f313ca SPIGOT-7593: Fix sapling growth physics / client-side updates
By: md_5 <git@md-5.net>
2024-03-11 15:03:33 +11:00
CraftBukkit/Spigot
db29270cd0 #1366: Expose riptide velocity to PlayerRiptideEvent
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-03-10 09:27:44 +11:00
CraftBukkit/Spigot
064818a555 SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346
By: Doc <nachito94@msn.com>
2024-03-10 09:20:54 +11:00
CraftBukkit/Spigot
39994359d1 Fix copying BlockStates with fields (eg, Banner)
By: md_5 <git@md-5.net>
2024-03-06 06:57:15 +11:00
CraftBukkit/Spigot
6864ed6fba Fix Camel not standing up when hurt
By: md_5 <git@md-5.net>
2024-03-03 11:30:57 +11:00
CraftBukkit/Spigot
e24cb644a8 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-02-29 06:49:54 +11:00
CraftBukkit/Spigot
95d69a6375 SPIGOT-7589 Fix NullPointerException when bans expire
By: Doc <nachito94@msn.com>
2024-02-22 19:55:53 +11:00
CraftBukkit/Spigot
64cd2b148a SPIGOT-336, SPIGOT-3366, SPIGOT-5768, SPIGOT-6409, SPIGOT-6861, #1008: Add EntityRemoveEvent
By: DerFrZocker <derrieple@gmail.com>
2024-02-21 20:55:34 +11:00
CraftBukkit/Spigot
6dc11b5d28 SPIGOT-7565: Throw a more descriptive error message when a developer tries to spawn an entity from a CraftBukkit class
By: DerFrZocker <derrieple@gmail.com>
2024-02-17 14:04:58 +11:00
CraftBukkit/Spigot
3cfdcf8a3e SPIGOT-7417, #1343: Add Sign#getTargetSide and Sign#getAllowedEditor
By: Jishuna <joshl5324@gmail.com>
2024-02-17 14:02:38 +11:00
CraftBukkit/Spigot
219db06f85 Fix accidentally renamed internal damage method
By: md_5 <git@md-5.net>
2024-02-11 09:58:07 +11:00
CraftBukkit/Spigot
49b5ee78bb SPIGOT-7300, #1180: Add new DamageSource API providing enhanced information about entity damage
By: Doc <nachito94@msn.com>
2024-02-11 09:54:25 +11:00
CraftBukkit/Spigot
db4af65c2e SPIGOT-7581: Fix typo in BlockMushroom
By: md_5 <git@md-5.net>
2024-02-09 19:00:25 +11:00
CraftBukkit/Spigot
684554a642 SPIGOT-7576, #1347: Add methods in MushroomCow to change stew effects
By: Doc <nachito94@msn.com>
2024-02-08 22:54:51 +11:00
CraftBukkit/Spigot
b5ff47182d #1259: Add Server#isLoggingIPs to get log-ips configuration
By: Doc <nachito94@msn.com>
2024-02-07 07:09:34 +11:00
CraftBukkit/Spigot
c434d05d57 Improve support for per-world game rules
By: md_5 <git@md-5.net>
2024-02-04 10:54:20 +11:00
CraftBukkit/Spigot
497c50463c #1348: Add Player methods for client-side potion effects
By: Jishuna <joshl5324@gmail.com>
2024-02-04 10:10:30 +11:00
CraftBukkit/Spigot
49c217ec31 #1335: Add API for in-world structures
By: coll1234567 <joshl5324@gmail.com>
2024-02-04 10:04:35 +11:00
CraftBukkit/Spigot
f85f51fcf0 SPIGOT-7577: Make CraftWindCharge#explode discard the entity
By: Doc <nachito94@msn.com>
2024-02-04 09:57:17 +11:00
CraftBukkit/Spigot
b4d633f7df Fix Crafter maximum stack size
By: md_5 <git@md-5.net>
2024-02-03 13:52:43 +11:00
CraftBukkit/Spigot
4fde00f8dc SPIGOT-7530, #1314: Improve Resource Pack API with new 1.20.3 functionality
By: md_5 <git@md-5.net>
2024-01-31 22:02:45 +11:00
CraftBukkit/Spigot
4a1ae2fa02 SPIGOT-3071, #1345: Add entity spawn method with spawn reason
By: DerFrZocker <derrieple@gmail.com>
2024-01-31 20:08:05 +11:00
CraftBukkit/Spigot
9c58e790bc #1353: Fix Structure#place not working as documented with 0 palette
By: Jishuna <joshl5324@gmail.com>
2024-01-31 20:01:58 +11:00
CraftBukkit/Spigot
c094bcbac2 SPIGOT-6911, #1349: Change max book length in CraftMetaBook
By: DerFrZocker <derrieple@gmail.com>
2024-01-31 19:59:28 +11:00
CraftBukkit/Spigot
aca2bf97bb SPIGOT-7572: Bee nests generated without bees
By: DerFrZocker <derrieple@gmail.com>
2024-01-27 14:59:22 +11:00
CraftBukkit/Spigot
7b15562116 SPIGOT-5553, #1336: Add EntityKnockbackEvent
By: Jishuna <joshl5324@gmail.com>
2024-01-27 14:53:41 +11:00
CraftBukkit/Spigot
67ab2cd516 SPIGOT-7568: Call EntityChangeBlockEvent for DecoratedPot
By: Doc <nachito94@msn.com>
2024-01-24 21:49:24 +11:00
CraftBukkit/Spigot
f5b984c8a0 SPIGOT-7575: SuspiciousStewMeta creates invalid PotionEffect data
By: Doc <nachito94@msn.com>
2024-01-24 21:45:52 +11:00
CraftBukkit/Spigot
d7095f8578 #1340: Centralize the conversion from and to Minecraft / Bukkit registry items even more and add a test case for them
By: DerFrZocker <derrieple@gmail.com>
2024-01-22 20:36:36 +11:00
CraftBukkit/Spigot
e6b4a5f109 #1338: Introduce getRespawnLocation as a replacement for getBedSpawnLocation
By: Nothixal <nothixal@gmail.com>
2024-01-22 20:27:09 +11:00
CraftBukkit/Spigot
5165e97c74 SPIGOT-7570: PrepareItemCraftEvent#isRepair() always returns false
By: md_5 <git@md-5.net>
2024-01-18 22:19:05 +11:00
CraftBukkit/Spigot
f4f370e55e #1337: Add DragonBattle#setPreviouslyKilled
By: DaFeist <56165444+dafeist-github@users.noreply.github.com>
2024-01-17 18:23:36 +11:00
CraftBukkit/Spigot
753db7f2fc SPIGOT-6921, #1330: Add methods to remove all enchantments on an ItemStack
By: Nothixal <nothixal@gmail.com>
2024-01-16 07:38:55 +11:00
CraftBukkit/Spigot
7581cde32e #1333: Add BlockData#copyTo
By: Jishuna <joshl5324@gmail.com>
2024-01-15 20:33:17 +11:00
CraftBukkit/Spigot
e216f2ef2d #1329: Add method to get an offline player's location
By: Nothixal <nothixal@gmail.com>
2024-01-15 20:30:41 +11:00
CraftBukkit/Spigot
93df3d859c #1327: Add methods to place structures with block/entity transformers
By: Jishuna <joshl5324@gmail.com>
2024-01-10 18:44:31 +11:00
CraftBukkit/Spigot
48a803d3ec SPIGOT-7567: SpawnReason for SNOWMAN is reported as BUILD_IRONGOLEM
By: md_5 <git@md-5.net>
2024-01-09 19:29:52 +11:00
CraftBukkit/Spigot
eb6041d8f8 Add EntityMountEvent and EntityDismount Event
Adapted from Spigot commit ab1e1a2a5a.

By: md_5 <git@md-5.net>
2024-01-07 08:59:55 +11:00
CraftBukkit/Spigot
d63f71fcde #1183: Better handle lambda expression and renaming of classes in Commodore
By: DerFrZocker <derrieple@gmail.com>
2024-01-06 16:15:23 +11:00
CraftBukkit/Spigot
8f59d4abd3 Reformat Commodore.java
By: md_5 <git@md-5.net>
2024-01-06 16:15:21 +11:00
CraftBukkit/Spigot
19e69bb8fc #1324: Improve ItemFactory#enchantItem consistency
By: Miles Holder <mwholder2005@gmail.com>
2024-01-06 16:07:58 +11:00
CraftBukkit/Spigot
8cd8851498 #1295: Define native persistent data types for lists
By: Bjarne Koll <lynxplay101@gmail.com>
2024-01-06 16:03:58 +11:00
CraftBukkit/Spigot
71ca5a7bdf SPIGOT-7562: Fix Score#getScore and Score#isScoreSet
By: md_5 <git@md-5.net>
2024-01-05 14:18:13 +11:00
CraftBukkit/Spigot
5e82782283 Only fetch an online UUID in online mode
The previous code would get an online UUID even in offline mode that
breaks plugins if the player joins.

Example: You want to store data for player "Test" who never joined. An
online UUID is created and you save it using that UUID.

The player Test joins with an offline UUID but that will not match the
online UUID of the saved data.

Adapted from Spigot commit 25b673fd7e418e21eb445a9e39d51baa0c0ab8b6

By: Maxim Van de Wynckel <maxim_vdw@hotmail.com>
2023-12-31 10:46:30 +11:00
CraftBukkit/Spigot
b92cff8a2d Fire PreLogin events even in offline mode
Adapted from Spigot commit 61400aa00c

By: md_5 <git@md-5.net>
2023-12-30 07:48:39 +11:00
CraftBukkit/Spigot
d15575db91 #1325: Use CraftBlockType and CraftItemType instead of CraftMagicNumbers to convert between minecraft and bukkit block / item representation
By: DerFrZocker <derrieple@gmail.com>
2023-12-29 08:36:38 +11:00
CraftBukkit/Spigot
b245f22351 SPIGOT-7554, #1323: Add DecoratedPotInventory
By: BlackHole <black-hole@live.com>
2023-12-28 08:07:06 +11:00
CraftBukkit/Spigot
5f42dbf7fe Ensure that PlayerMoveEvent is always fired where applicable
Adapted and improved version of Spigot commit eb9e4c0460

By: md_5 <git@md-5.net>
2023-12-28 07:56:30 +11:00
CraftBukkit/Spigot
61281a3158 SPIGOT-7555: Don't cast ItemFlags to byte
This fixes an issue with the HIDE_ARMOR_TRIM flag being lost during item
deserialization.

By: blablubbabc <lukas@wirsindwir.de>
2023-12-27 11:15:24 +11:00
CraftBukkit/Spigot
d19f0e9b26 Use provided case for non-existent OfflinePlayers
Fixes issues with using scoreboards to provide information via pseudo players being all lowercased.

Ported from Spigot commit e11d481452

By: md_5 <git@md-5.net>
2023-12-26 14:33:31 +11:00
CraftBukkit/Spigot
61052d56b5 #1321: Clean up some stuff which got missed during previous PRs
- Add missing CraftBukkit comment to CommandGive
- Remove no longer needed IRegistryCustom from CraftStructure conversion
- Use setBasePotionType instead of deprecated setBasePotionData

By: DerFrZocker <derrieple@gmail.com>
2023-12-26 07:44:21 +11:00
CraftBukkit/Spigot
fd3e1799d3 SPIGOT-7462: Players no longer drop XP after dying near a Sculk Catalyst
By: DerFrZocker <derrieple@gmail.com>
2023-12-26 07:42:19 +11:00
CraftBukkit/Spigot
a9fb0c70f8 Implement APIs for per world view and simulation distances
By: md_5 <git@md-5.net>
2023-12-23 14:32:49 +11:00
CraftBukkit/Spigot
6a6ddbcb6d Preserve empty enchantment tags for glow effect
Adapted from Spigot commit cc9a1a417f1ac95a7957db8636e31c8fc2baf4e9.

By: drXor <mcyoung@mit.edu>
2023-12-23 12:50:04 +11:00
CraftBukkit/Spigot
3d36db0106 Remove connected check on setScoreboard
No other API uses such a check and it has been removed in Spigot since f7086eb96d in 2013.

By: md_5 <git@md-5.net>
2023-12-23 08:39:28 +11:00
CraftBukkit/Spigot
fe17e5f886 Use one PermissibleBase for all command blocks
Inspired by Spigot commit 4bd27f7d0f by FrozenBrain.

By: md_5 <git@md-5.net>
2023-12-23 08:28:06 +11:00
CraftBukkit/Spigot
67a231d8d9 SPIGOT-7550: Fix creation of Arrow instances
By: Doc <nachito94@msn.com>
2023-12-21 08:19:29 +11:00
CraftBukkit/Spigot
1b81fe827e SPIGOT-7549: ServerTickManager#setTickRate incorrect Precondition
By: md_5 <git@md-5.net>
2023-12-18 18:45:09 +11:00
CraftBukkit/Spigot
a92362c927 SPIGOT-7548: Fix wrong spawn location for experience orb and dropped item
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-12-18 00:08:16 -05:00
CraftBukkit/Spigot
8c7156ce51 Add Checkstyle check for unused imports
By: md_5 <git@md-5.net>
2023-12-17 10:26:49 +11:00
CraftBukkit/Spigot
90ab7d39e5 SPIGOT-7544: Scoreboard#getEntries() doesn't get entries but class names
By: md_5 <git@md-5.net>
2023-12-17 09:38:38 +11:00
CraftBukkit/Spigot
46c67d7108 SPIGOT-7540, #1312: Add ServerTickManager API
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:30:00 +11:00
CraftBukkit/Spigot
3e5032caac SPIGOT-6903, #1311: Add BlockData#getMapColor
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:29:54 +11:00
CraftBukkit/Spigot
bbb64e5e0e #1238: Remove unnecessary sign ticking
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:29:48 +11:00
CraftBukkit/Spigot
6f023adfe9 MC-264285, SPIGOT-7439, #1237: Fix unbreakable flint and steel is completely consumed while igniting creeper
By: Miles Holder <mwholder2005@gmail.com>
2023-12-17 09:29:44 +11:00
CraftBukkit/Spigot
3c241dbb64 Increase outdated build delay
By: md_5 <git@md-5.net>
2023-12-16 09:56:19 +11:00
CraftBukkit/Spigot
6d495b5687 SPIGOT-7530, #1313: Add Player#removeResourcePack
By: Doc <nachito94@msn.com>
2023-12-13 07:33:49 +11:00
CraftBukkit/Spigot
889ce05e35 SPIGOT-7527, #1310: Add WindCharge#explode()
By: Doc <nachito94@msn.com>
2023-12-12 19:34:37 +11:00
CraftBukkit/Spigot
8b40071aa8 Upgrade MySQL driver
By: md_5 <git@md-5.net>
2023-12-10 10:59:27 +11:00
CraftBukkit/Spigot
b1cb1a8a1e Attempt upgrade of resolver libraries
By: md_5 <git@md-5.net>
2023-12-10 10:57:24 +11:00
CraftBukkit/Spigot
c90e518928 #1306: Centralize Bukkit and Minecraft entity conversion
By: DerFrZocker <derrieple@gmail.com>
2023-12-10 10:46:06 +11:00
CraftBukkit/Spigot
7656a539b6 SPIGOT-7440, #1292: Fire EntityTeleportEvent for end gateways
By: Jishuna <joshl5324@gmail.com>
2023-12-08 19:35:57 +11:00
CraftBukkit/Spigot
336afd230d #1299: Add new PersistentDataContainer methods and clean up docs
By: Jishuna <joshl5324@gmail.com>
2023-12-08 19:29:38 +11:00
CraftBukkit/Spigot
a5594be1c7 #1303: Create registry for banner pattern and cat type
By: Jishuna <joshl5324@gmail.com>
2023-12-08 19:26:30 +11:00
CraftBukkit/Spigot
aacf3bd308 SPIGOT-7535: Fix maps not having an ID and also call MapInitializeEvent in more places
By: md_5 <git@md-5.net>
2023-12-08 19:20:05 +11:00