Commit graph

3361 commits

Author SHA1 Message Date
CraftBukkit/Spigot
a768ea0ddf SPIGOT-7953: Item cooldown must be greater than 0
By: md_5 <git@md-5.net>
2024-11-12 20:37:58 +11:00
CraftBukkit/Spigot
475a5576bc Increase outdated build delay
By: md_5 <git@md-5.net>
2024-11-10 21:20:09 +11:00
CraftBukkit/Spigot
bbe0572877 SPIGOT-7946: API for server pause when empty seconds
By: md_5 <git@md-5.net>
2024-11-06 20:38:09 +11:00
CraftBukkit/Spigot
30af9c34dd SPIGOT-7949: Registering a new scoreboard objective with an empty display name throws a NPE
By: md_5 <git@md-5.net>
2024-11-06 20:22:58 +11:00
CraftBukkit/Spigot
b9a4bb1cd1 SPIGOT-7948: Bukkit#dispatchCommand uses the wrong CommandListenerWrapper for Players
By: md_5 <git@md-5.net>
2024-11-06 20:20:36 +11:00
CraftBukkit/Spigot
8fc0f462c0 SPIGOT-7945: Bukkit#dispatchCommand throws UnsupportedOperationException
By: md_5 <git@md-5.net>
2024-11-04 07:25:07 +11:00
CraftBukkit/Spigot
83f48fb3c6 SPIGOT-7933: Improve custom Minecart max speed
By: md_5 <git@md-5.net>
2024-11-03 09:22:20 +11:00
CraftBukkit/Spigot
d580602ebb SPIGOT-7937: Cannot spawn minecart during world generation with minecart_improvements enabled
By: md_5 <git@md-5.net>
2024-11-02 17:40:23 +11:00
CraftBukkit/Spigot
aefa65b696 #1504: Make Art an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-02 11:00:13 +11:00
CraftBukkit/Spigot
42ebf1afa4 #1502: Make Sound an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-02 11:00:08 +11:00
CraftBukkit/Spigot
7b903b41cb #1501: Make Biome an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-01 08:05:35 +11:00
CraftBukkit/Spigot
2960bff05e #1500: Rename implementation for Vault State methods
By: Doc <nachito94@msn.com>
2024-10-29 06:43:27 +11:00
CraftBukkit/Spigot
af6f2c9b41 #1499: Make Fluid an interface and add missing entry
By: DerFrZocker <derrieple@gmail.com>
2024-10-29 06:43:20 +11:00
CraftBukkit/Spigot
08c83835f3 #1498: Make Attribute an interface and align names with the new minecraft ones
By: DerFrZocker <derrieple@gmail.com>
2024-10-29 06:43:14 +11:00
CraftBukkit/Spigot
a15be74be3 SPIGOT-7929: Error when setting EquippableComponent
By: md_5 <git@md-5.net>
2024-10-27 07:33:54 +11:00
CraftBukkit/Spigot
762b4f15ca #1497: Move boat field rename entries to below key renaming, so that keys are also renamed
By: DerFrZocker <derrieple@gmail.com>
2024-10-27 07:27:35 +11:00
CraftBukkit/Spigot
54caf1484d #1496: Use correct Fluid class on Tags type check
By: DerFrZocker <derrieple@gmail.com>
2024-10-27 07:26:23 +11:00
CraftBukkit/Spigot
e1673f9708 #1494: TreeType - add missing pale oak trees
By: shanebeee <shanebolenback@me.com>
2024-10-24 07:07:57 +11:00
CraftBukkit/Spigot
0821d18951 SPIGOT-7924: Registering a ShapelessRecipe throws an IndexOutOfBoundsException
By: md_5 <git@md-5.net>
2024-10-24 06:53:07 +11:00
CraftBukkit/Spigot
1236b98371 Update to Minecraft 1.21.3
By: md_5 <git@md-5.net>
2024-10-24 06:15:00 +11:00
CraftBukkit/Spigot
adbb925fc4 SPIGOT-7922: ExactChoice recipe fails to be added
By: md_5 <git@md-5.net>
2024-10-23 19:38:39 +11:00
CraftBukkit/Spigot
cd2a2a27ff SPIGOT-7919: Add API to access current player input
By: md_5 <git@md-5.net>
2024-10-23 08:04:17 +11:00
CraftBukkit/Spigot
d6c970b00b SPIGOT-7918: Make error message clearer for slot types not present in player inventories
By: md_5 <git@md-5.net>
2024-10-23 07:30:39 +11:00
CraftBukkit/Spigot
a24f08778b SPIGOT-7920: Expose enderpearls of Player
By: md_5 <git@md-5.net>
2024-10-23 07:20:07 +11:00
CraftBukkit/Spigot
d3a23f42c3 Update to Minecraft 1.21.2
By: md_5 <git@md-5.net>
2024-10-23 02:15:00 +11:00
CraftBukkit/Spigot
2c4beb962b Remove outdated build delay
By: md_5 <git@md-5.net>
2024-10-23 02:00:00 +11:00
CraftBukkit/Spigot
2a98825ddf #1493: Improve reroute performance and add some tests
By: DerFrZocker <derrieple@gmail.com>
2024-10-15 21:05:19 +11:00
CraftBukkit/Spigot
8484d46297 Add support for Java 23
By: md_5 <git@md-5.net>
2024-10-14 19:57:04 +11:00
CraftBukkit/Spigot
c8344ab49d SPIGOT-7915: Fix World#getKeepSpawnInMemory() using Spawn Radius rather than Spawn Chunk Radius
By: Doc <nachito94@msn.com>
2024-10-10 07:56:26 +11:00
CraftBukkit/Spigot
7be855108f Fix HIDE_ENCHANTS flag in items without enchantments
By: Doc <nachito94@msn.com>
2024-10-07 14:16:09 -03:00
CraftBukkit/Spigot
f77cb8d6c2 Bump asm to 9.7.1 and re-add ClassReader to ClassWriter
By: DerFrZocker <derrieple@gmail.com>
2024-10-06 14:38:13 +02:00
CraftBukkit/Spigot
adf5fecbbb #1487: Add specific getTopInventory methods for InventoryView derivatives
By: Miles Holder <mwholder@proton.me>
2024-10-06 18:45:12 +11:00
CraftBukkit/Spigot
d7d206b995 SPIGOT-7907, #1484: Improve merchant recipe item matching behavior to more closely align with older versions
Before the update for MC 1.20.5 (item components), merchant recipes
would accept items with additional NBT tags. Since 1.20.5, merchant
recipes created via the Bukkit API no longer accept additional
components.

This changes which component types we pick for merchant recipes created
via the API to more closely match the behavior from before the MC 1.20.5
update, i.e. ignore any empty / default components again.

By: blablubbabc <lukas@wirsindwir.de>
2024-10-06 18:32:00 +11:00
CraftBukkit/Spigot
54c12bdb6e SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set
By: md_5 <git@md-5.net>
2024-10-06 18:25:07 +11:00
CraftBukkit/Spigot
bad69bdc04 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-10-06 18:18:22 +11:00
CraftBukkit/Spigot
8fc133212d SPIGOT-7910: Fix launching breeze wind charge from API and improve dispenser launch API
By: md_5 <git@md-5.net>
2024-09-29 10:29:39 +10:00
CraftBukkit/Spigot
074c4c011e SPIGOT-7902, #1477: Fix CraftMetaPotion#hasCustomEffects() does not check if customEffects (List) is empty
By: James Perry <beanp02@yahoo.com>
2024-09-27 08:35:25 +10:00
CraftBukkit/Spigot
060be9b96a Implement base methods for tags
By: md_5 <git@md-5.net>
2024-09-27 08:28:45 +10:00
CraftBukkit/Spigot
0278929667 Improve Registry#getOrThrow messages
By: md_5 <git@md-5.net>
2024-09-27 08:21:32 +10:00
CraftBukkit/Spigot
eb72b9d8a3 #1475: Add tests for Minecraft registry <-> Bukkit fields
By: DerFrZocker <derrieple@gmail.com>
2024-09-27 08:15:18 +10:00
CraftBukkit/Spigot
fbf9dd80d4 #1473: Change tests to use suites, to run tests in different environments and feature flags
By: DerFrZocker <derrieple@gmail.com>
2024-09-26 20:01:56 +10:00
CraftBukkit/Spigot
18f63085bb #1481: Fix BeaconView#set[X]Effect(null)
By: Miles Holder <mwholder@proton.me>
2024-09-25 07:52:14 +10:00
CraftBukkit/Spigot
98e7025512 #1480: Fix PerMaterialTest#isEdible test running for legacy materials
By: DerFrZocker <derrieple@gmail.com>
2024-09-20 07:23:06 +10:00
CraftBukkit/Spigot
52e03b47a2 #1479: Use custom #isBlock method in legacy init instead of the one in Material, since it relies on legacy being init
By: DerFrZocker <derrieple@gmail.com>
2024-09-20 07:17:47 +10:00
CraftBukkit/Spigot
c33c116001 Fix missing hasJukeboxPlayable
By: md_5 <git@md-5.net>
2024-09-17 21:09:21 +10:00
CraftBukkit/Spigot
5f1cd5748b SPIGOT-7881: CTRL+Pick Block saves position data into item
By: md_5 <git@md-5.net>
2024-09-15 17:17:10 +10:00
CraftBukkit/Spigot
4b1526b609 SPIGOT-7899: Smithing recipes don't require inputs
By: md_5 <git@md-5.net>
2024-09-15 16:50:24 +10:00
CraftBukkit/Spigot
5bc6a90535 SPIGOT-7894: NPE when sending tile entity update
By: md_5 <git@md-5.net>
2024-09-09 21:04:38 +10:00
CraftBukkit/Spigot
b7359583f2 SPIGOT-7895: PlayerItemBreakEvent not firing
By: md_5 <git@md-5.net>
2024-09-09 20:57:37 +10:00
CraftBukkit/Spigot
616ec5f700 SPIGOT-7891: Can't remove second ingredient of MerchantRecipe
By: md_5 <git@md-5.net>
2024-09-07 18:57:55 +10:00
CraftBukkit/Spigot
fbea3cdc0c #1458: Add MenuType API
By: Miles Holder <mwholder2005@gmail.com>
2024-09-07 18:52:00 +10:00
CraftBukkit/Spigot
ac5e815b3e SPIGOT-7867: Merchant instanceof AbstractVillager always returns false
By: Miles Holder <mwholder2005@gmail.com>
2024-09-07 18:14:09 +10:00
CraftBukkit/Spigot
7657f347d2 #1468: Expand riptiding API
By: ShreyasAyyengar <shreyas.ayyengar@gmail.com>
2024-09-07 18:08:13 +10:00
CraftBukkit/Spigot
106225f127 Ignore checks in CraftPlayerProfile for ResolvableProfile used in profile components
By: Doc <nachito94@msn.com>
2024-08-31 10:25:23 -04:00
CraftBukkit/Spigot
3919314de0 SPIGOT-7889: Fix tool component deserialisation without speed and/or correct-for-drops
By: md_5 <git@md-5.net>
2024-08-31 08:49:31 +10:00
CraftBukkit/Spigot
b133887b85 SPIGOT-7882, #1467: Fix conversion of name in Profile Component to empty if it is missing
By: Doc <nachito94@msn.com>
2024-08-31 08:40:57 +10:00
CraftBukkit/Spigot
ab921984fc SPIGOT-7878: Server#getLootTable does not return null on invalid loot table
By: md_5 <git@md-5.net>
2024-08-24 08:02:44 +10:00
CraftBukkit/Spigot
0916d51f5d SPIGOT-7876: Can't kick player or disconnect player in PlayerLoginEvent when checking for cookies
By: md_5 <git@md-5.net>
2024-08-24 07:51:55 +10:00
CraftBukkit/Spigot
84f1d558c3 #1465: Add FireworkMeta#hasPower
By: Doc <nachito94@msn.com>
2024-08-24 07:44:52 +10:00
CraftBukkit/Spigot
51e69e6788 SPIGOT-7873: Add powered state for skulls
By: md_5 <git@md-5.net>
2024-08-24 07:42:35 +10:00
CraftBukkit/Spigot
9f0a790b3d SPIGOT-7868, #1463: Fix default and max power in FireworkMeta
By: Doc <nachito94@msn.com>
2024-08-17 08:37:46 +10:00
CraftBukkit/Spigot
71695536dd SPIGOT-7783, SPIGOT-7784, #1460: Add Trial Vault & Spawner event API
By: ShreyasAyyengar <shreyas.ayyengar@gmail.com>
2024-08-13 20:50:04 +10:00
CraftBukkit/Spigot
921fbc5f60 Update to Minecraft 1.21.1
By: md_5 <git@md-5.net>
2024-08-09 07:00:00 +10:00
CraftBukkit/Spigot
59b86b9837 SPIGOT-7857: Improve ItemMeta block data deserialization
By: blablubbabc <lukas@wirsindwir.de>
2024-08-08 07:44:52 +10:00
CraftBukkit/Spigot
8c7a0e888f SPIGOT-7857: Fix spurious internal NBT tag when deserializing BlockStateMeta
By: md_5 <git@md-5.net>
2024-08-06 19:07:10 +10:00
CraftBukkit/Spigot
3fb8f4b1d1 SPIGOT-7853: AnvilInventory#getRepairCost() always returns 0
By: Miles Holder <mwholder2005@gmail.com>
2024-07-30 07:11:55 +10:00
CraftBukkit/Spigot
9a7508c3ab #1450: Add CrafterCraftEvent
By: ploppyperson <nathat890@outlook.com>
Also-by: md_5 <git@md-5.net>
2024-07-30 07:07:10 +10:00
CraftBukkit/Spigot
1a0dce328a #1456: Fix inverted logic in CraftCrafterView#setSlotDisabled
By: Miles Holder <mwholder2005@gmail.com>
2024-07-28 08:34:00 +10:00
CraftBukkit/Spigot
57bb408920 SPIGOT-7850: Add API for Bogged shear state
By: md_5 <git@md-5.net>
2024-07-27 10:28:37 +10:00
CraftBukkit/Spigot
d2745c6491 SPIGOT-7837: Support data pack banner patterns
By: Doc <nachito94@msn.com>
2024-07-27 10:14:41 +10:00
CraftBukkit/Spigot
bfad1aa117 #1431: Add API for InventoryView derivatives
By: Miles Holder <mwholder2005@gmail.com>
2024-07-27 10:01:29 +10:00
CraftBukkit/Spigot
7fae51f18d SPIGOT-7849: Fix FoodComponent serialize with "using-converts-to" using null
By: Doc <nachito94@msn.com>
2024-07-26 07:25:02 +10:00
CraftBukkit/Spigot
983dd759e8 Don't rely on tags for CraftItemMetas
By: md_5 <git@md-5.net>
2024-07-24 19:40:55 +10:00
CraftBukkit/Spigot
af7b1e8dec SPIGOT-7846: Fix ItemMeta for hanging signs
By: md_5 <git@md-5.net>
2024-07-24 19:40:50 +10:00
CraftBukkit/Spigot
b9c7f251e4 SPIGOT-7839: Remove redundant Java version checks
By: md_5 <git@md-5.net>
2024-07-20 10:20:27 +10:00
CraftBukkit/Spigot
60eec22bd3 SPIGOT-7809: Add ShieldMeta and fix setting shield base colours
By: Doc <nachito94@msn.com>
Also-by: md_5 <git@md-5.net>
2024-07-20 10:15:22 +10:00
CraftBukkit/Spigot
92c33ca0c7 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-07-15 20:06:23 +10:00
CraftBukkit/Spigot
71bc2b07ed SPIGOT-7827: Sync EntityPortalEvent with PlayerPortalEvent since non-players can now create portals
By: md_5 <git@md-5.net>
2024-07-10 19:43:43 +10:00
CraftBukkit/Spigot
4377eb6edb SPIGOT-7823: Suspicious sand and gravel material are not marked as having gravity correctly
By: md_5 <git@md-5.net>
2024-07-10 18:50:13 +10:00
CraftBukkit/Spigot
9d6d5d8dc5 SPIGOT-7820: Enum changes - duplicate method name
By: DerFrZocker <derrieple@gmail.com>
2024-07-08 07:01:03 +10:00
CraftBukkit/Spigot
d86a8b483e SPIGOT-7813: Material#isInteractable() always returns false
By: md_5 <git@md-5.net>
2024-07-07 09:24:47 +10:00
CraftBukkit/Spigot
d7c74a442e SPIGOT-7806: Handle both loot and inventory item drop behaviour in PlayerDeathEvent
By: Doc <nachito94@msn.com>
2024-07-06 17:25:39 +10:00
CraftBukkit/Spigot
b6655d093f SPIGOT-7799, #1436: Expose explosion world interaction in EntityExplodeEvent and BlockExplodeEvent
By: antiPerson <nathat890@outlook.com>
2024-07-06 17:19:45 +10:00
CraftBukkit/Spigot
41b8d833db #1424: 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 #931 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`.

By: DerFrZocker <derrieple@gmail.com>
2024-07-06 17:14:22 +10:00
CraftBukkit/Spigot
7288f31c8d SPIGOT-7812: Revert "SPIGOT-7809: Restore shield/banner conversion for base colours"
This reverts commit 09b9a2110e.

By: md_5 <git@md-5.net>
2024-07-04 07:01:08 +10:00
CraftBukkit/Spigot
376a4220bf SPIGOT-7808: Fix implementation of Enchantment#getName() for bad name return
By: Doc <nachito94@msn.com>
2024-07-03 20:21:17 +10:00
CraftBukkit/Spigot
09b9a2110e SPIGOT-7809: Restore shield/banner conversion for base colours
By: md_5 <git@md-5.net>
2024-07-03 20:21:13 +10:00
CraftBukkit/Spigot
292255a36a SPIGOT-7805: Fix jukebox deserialization
By: blablubbabc <lukas@wirsindwir.de>
2024-07-01 07:08:06 +10:00
CraftBukkit/Spigot
bc75f0bcb5 SPIGOT-7804: Fix written book serialization
* Account for null/missing values when deserializing the 'resolved' and
  'generation' fields.
* Serialize the book pages as JSON strings.
* Avoid redundant conversion from strings to components to JSON and back to
  components during deserialization.
  Add CraftChatMessage.fromJSONOrString that accepts a maxLength argument
  and remove the no longer used fromJSONOrStringToJSON, fromStringToJSON,
  and fromJSONComponent helper methods.

By: blablubbabc <lukas@wirsindwir.de>
2024-06-30 16:27:23 +10:00
CraftBukkit/Spigot
8821aa372c SPIGOT-7800, SPIGOT-7801: Keep vanilla behaviour for items dropped on player death
By: Doc <nachito94@msn.com>
2024-06-29 14:03:10 +10:00
CraftBukkit/Spigot
5f8cff3bb5 #1429: Implement TrialSpawnerSpawnEvent
By: Doc <nachito94@msn.com>
2024-06-28 07:06:36 +10:00
CraftBukkit/Spigot
820bc6423d #1354: Improve spawner API and add API for Trial Spawners
By: coll1234567 <joshl5324@gmail.com>
2024-06-28 07:06:20 +10:00
CraftBukkit/Spigot
c59410cfbc Increase outdated build delay
By: md_5 <git@md-5.net>
2024-06-26 07:00:34 +10:00
CraftBukkit/Spigot
0d64e2be4b SPIGOT-7796: Kickplayer newlines not working
By: md_5 <git@md-5.net>
2024-06-24 06:33:02 +10:00
CraftBukkit/Spigot
5d025bbee8 Improve cross-world teleportation handling
By: md_5 <git@md-5.net>
2024-06-23 16:45:29 +10:00
CraftBukkit/Spigot
477394d314 #1433: HumanEntity#openInventory(InventoryView) should only support views belonging to the player
By: Miles Holder <mwholder2005@gmail.com>
2024-06-22 18:48:51 +10:00
CraftBukkit/Spigot
aef018b9c4 SPIGOT-7732: Issue with the "hurt()" method of EntityLiving and invulnerable time
By: LoliColleen <76620594+LoliColleen@users.noreply.github.com>
2024-06-22 18:46:41 +10:00
CraftBukkit/Spigot
7667932681 SPIGOT-7791: Skull BlockState with null profile causes NullPointerException
By: md_5 <git@md-5.net>
2024-06-22 11:42:15 +10:00
CraftBukkit/Spigot
2f1800fa2e SPIGOT-7789: Fix NPE in CraftMetaFirework applyToItem
By: blablubbabc <lukas@wirsindwir.de>
2024-06-20 07:04:11 +10:00
CraftBukkit/Spigot
1128edadb2 #1428: Expose Creeper igniter
By: Doc <nachito94@msn.com>
2024-06-19 06:48:33 +10:00
CraftBukkit/Spigot
e43f607e6a #1425: Fix bytecode transformation taking care of class-to-interface compatibility.
By: Jannyboy11 <Jannyboy11@gmail.com>
2024-06-18 19:19:15 +10:00
CraftBukkit/Spigot
ac95e0b210 SPIGOT-7770: Fix certain shaped recipes not registering
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-06-18 19:06:07 +10:00
CraftBukkit/Spigot
5f8b82d6cc #1426: Deprecate more unused methods in UnsafeValues
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-06-17 20:56:19 +10:00
CraftBukkit/Spigot
8537c328d0 SPIGOT-7771: Material.getDefaultAttributes always returns an empty map
By: md_5 <git@md-5.net>
2024-06-17 19:44:14 +10:00
CraftBukkit/Spigot
d2d0972bc3 #1414: Convert InventoryView to interface
By: Miles Holder <mwholder2005@gmail.com>
2024-06-16 08:47:38 +10:00
CraftBukkit/Spigot
6af115230a Fix Implementation for DamageSource#isIndirect for internal custom causing entity
By: Doc <nachito94@msn.com>
2024-06-15 12:47:45 -04:00
CraftBukkit/Spigot
9f79c6f74e Remove unused import
By: md_5 <git@md-5.net>
2024-06-15 12:52:01 +10:00
CraftBukkit/Spigot
3e98b1bcbe SPIGOT-7757: Cannot set item in Stonecutter Inventory
By: md_5 <git@md-5.net>
2024-06-15 12:48:38 +10:00
CraftBukkit/Spigot
85df4599c9 Move deserialized removed unhandled tags to dedicated removedTags
By: md_5 <git@md-5.net>
2024-06-15 10:09:35 +10:00
CraftBukkit/Spigot
87c3fdad31 Fix potential mutability issue with CraftMetaItem copy constructor
By: md_5 <git@md-5.net>
2024-06-15 07:03:03 +10:00
CraftBukkit/Spigot
1e6fb15514 SPIGOT-7741: Vanilla ItemComponent in commands can't remove components
By: md_5 <git@md-5.net>
2024-06-15 07:03:03 +10:00
CraftBukkit/Spigot
26f44f56c1 #1284: Move ItemType <-> ItemMeta linking to a centralized place
By: DerFrZocker <derrieple@gmail.com>
2024-06-15 06:53:46 +10:00
CraftBukkit/Spigot
c985be99a6 #1420: Fix DirectEntity and CausingEntity Damager for Creepers ignited by Player
By: Doc <nachito94@msn.com>
2024-06-15 06:47:48 +10:00
CraftBukkit/Spigot
9c115e8fae Implement DamageCause#CAMPFIRE and minor improvement in exception for Unhandled block damage
By: Doc <nachito94@msn.com>
2024-06-13 12:23:28 -04:00
CraftBukkit/Spigot
eed041d629 Update to Minecraft 1.21
By: md_5 <git@md-5.net>
2024-06-14 01:05:00 +10:00
CraftBukkit/Spigot
7c6204e1a9 Remove outdated build delay
By: md_5 <git@md-5.net>
2024-06-14 01:00:00 +10:00
CraftBukkit/Spigot
1ded727925 SPIGOT-7737: Add separate TreeType.MEGA_PINE
By: md_5 <git@md-5.net>
2024-06-11 21:04:56 +10:00
CraftBukkit/Spigot
92a9fb31be Fix spawn egg equality check and copy constructor
By: md_5 <git@md-5.net>
2024-06-11 06:59:14 +10:00
CraftBukkit/Spigot
cd2a1a6d7e Fix spawn eggs with no entity creating invalid stacks and disconnect creative clients
Example: /give @s minecraft:cat_spawn_egg[minecraft:max_stack_size=1,minecraft:max_damage=100,minecraft:damage=10] 1

By: md_5 <git@md-5.net>
2024-06-10 14:06:38 +10:00
CraftBukkit/Spigot
9db084c279 SPIGOT-7731: Spawn eggs cannot have damage
By: Doc <nachito94@msn.com>
2024-06-10 14:06:34 +10:00
CraftBukkit/Spigot
95f120b7ff SPIGOT-7735: Fix serialization of player heads with note block sound
By: blablubbabc <lukas@wirsindwir.de>
2024-06-10 08:35:53 +10:00
CraftBukkit/Spigot
cd4487372e #1413: Add force option to Player#spawnParticle
By: Jishuna <joshl5324@gmail.com>
2024-06-08 09:11:27 +10:00
CraftBukkit/Spigot
00cc0753d7 #1409: Add methods to get players seeing specific chunks
By: MetallicGoat <the.great.metallic.goat@gmail.com>
2024-06-08 09:03:44 +10:00
CraftBukkit/Spigot
6d2082bf75 #1360: Add Material#isCompostable and Material#getCompostChance
By: mfnalex <mfnalex@jeff-media.com>
2024-06-05 07:15:52 +10:00
CraftBukkit/Spigot
d267f74a0b SPIGOT-7676: Enforce locale parameter in toLowerCase and toUpperCase method calls and always use root locale
By: DerFrZocker <derrieple@gmail.com>
2024-06-03 07:18:17 +10:00
CraftBukkit/Spigot
4b6edd3c82 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-06-02 08:58:26 +10:00
CraftBukkit/Spigot
764529d82b SPIGOT-7675: Fix FoodComponent config deserialization
Be more lenient when converting floating point numbers during config
deserialization of item data.

By: blablubbabc <lukas@wirsindwir.de>
2024-05-31 07:14:09 +10:00
CraftBukkit/Spigot
79d9816660 #1406: Fix incorrect assumption of Fireball having constant speed
By: DerFrZocker <derrieple@gmail.com>
2024-05-29 06:56:42 +10:00
CraftBukkit/Spigot
4691102616 #1405: Add a tool component to ItemMeta
By: 2008Choco <hawkeboyz2@hotmail.com>
Also-by: md_5 <git@md-5.net>
2024-05-29 06:53:59 +10:00
CraftBukkit/Spigot
3433d3f5b7 #1404: Add PotionEffectTypeCategory to distinguish between beneficial and harmful effects
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-05-29 06:50:08 +10:00
CraftBukkit/Spigot
402878b8cd #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.

By: DerFrZocker <derrieple@gmail.com>
2024-05-29 06:48:55 +10:00
CraftBukkit/Spigot
c955ea1663 #1401: Add a config option to accept old keys in registry get calls
By: DerFrZocker <derrieple@gmail.com>
2024-05-29 06:45:14 +10:00
CraftBukkit/Spigot
6f5d01226e #1402: Fix ChunkSnapshot#isSectionEmpty() is always false
By: MetallicGoat <the.great.metallic.goat@gmail.com>
2024-05-23 21:14:56 +10:00
CraftBukkit/Spigot
60c7d83e00 SPIGOT-7668: Move NONE Registry updater to FieldRename to avoid some class loader issues
By: DerFrZocker <derrieple@gmail.com>
2024-05-19 21:35:46 +02:00
CraftBukkit/Spigot
575f106abd Increase outdated build delay
By: md_5 <git@md-5.net>
2024-05-13 21:21:16 +10:00
CraftBukkit/Spigot
850e49f268 SPIGOT-7664: Item meta should prevail over block states
By: md_5 <git@md-5.net>
2024-05-10 19:33:23 +10:00
CraftBukkit/Spigot
317917800c SPIGOT-7666: Fix access to llama and horse special slot
By: md_5 <git@md-5.net>
2024-05-10 19:23:01 +10:00
CraftBukkit/Spigot
54f230de84 SPIGOT-7665: Fix ThrownPotion#getEffects() implementation only bringing custom effects
By: Doc <nachito94@msn.com>
2024-05-10 19:09:20 +10:00
CraftBukkit/Spigot
17b4c0d7a3 Restore null page behaviour of signed books even though not strictly allowed by API
By: md_5 <git@md-5.net>
2024-05-10 19:08:54 +10:00
CraftBukkit/Spigot
06b53d8386 Fix unnecessary and potential not thread-safe chat visibility check
By: md_5 <git@md-5.net>
2024-05-07 21:40:57 +10:00
CraftBukkit/Spigot
38d4a335ea Remove unused imports
By: md_5 <git@md-5.net>
2024-05-06 20:30:27 +10:00
CraftBukkit/Spigot
f89c0d3ad7 #1397: Add ItemMeta#getAsComponentString()
By: 2008Choco <hawkeboyz2@hotmail.com>
2024-05-06 20:23:39 +10:00
CraftBukkit/Spigot
f323d82f21 Largely restore deprecated PotionData API
By: md_5 <git@md-5.net>
2024-05-05 20:45:48 +10:00
CraftBukkit/Spigot
8f55ed539f #1275: Add internal ItemType and BlockType, delegate Material methods to them
By: Jishuna <joshl5324@gmail.com>
Also-by: Bjarne Koll <lynxplay101@gmail.com>
Also-by: DerFrZocker <derrieple@gmail.com>
Also-by: md_5 <git@md-5.net>
2024-05-05 10:08:54 +10:00
CraftBukkit/Spigot
b4e6cc4dce SPIGOT-1166, SPIGOT-7647: Expose Damager BlockState in EntityDamageByBlockEvent
By: Doc <nachito94@msn.com>
2024-05-05 09:34:57 +10:00
CraftBukkit/Spigot
7aa4984347 SPIGOT-6993: Allow #setVelocity to change the speed of a fireball and add a note to #setDirection about it
By: DerFrZocker <derrieple@gmail.com>
2024-05-04 19:34:27 +10:00
CraftBukkit/Spigot
4951fa2dd1 Support both entity_data and bucket_entity_data on axolotl/fish buckets
By: md_5 <git@md-5.net>
2024-05-04 14:25:29 +10:00
CraftBukkit/Spigot
9bf6a88788 SPIGOT-7659: TropicalFishBucketMeta should use BUCKET_ENTITY_DATA
By: md_5 <git@md-5.net>
2024-05-04 08:49:06 +10:00
CraftBukkit/Spigot
acdb83379e #1393: Improve field rename handling and centralize conversion between bukkit and string more
By: DerFrZocker <derrieple@gmail.com>
2024-05-04 08:19:07 +10:00
CraftBukkit/Spigot
f91094ddfd SPIGOT-7650: Add DamageSource for EntityDeathEvent and PlayerDeathEvent
By: Doc <nachito94@msn.com>
2024-05-04 08:16:00 +10:00
CraftBukkit/Spigot
066665a979 #1390: Improve internal handling of damage sources
By: Doc <nachito94@msn.com>
2024-05-04 08:15:51 +10:00
CraftBukkit/Spigot
c604cac551 SPIGOT-7652: Remove remap for SPELL_MOB_AMBIENT which no longer exists
By: md_5 <git@md-5.net>
2024-05-02 21:26:08 +10:00
CraftBukkit/Spigot
de3b4d1800 SPIGOT-7654: ItemStack#isSimilar does not work with empty BlockStateMeta
By: md_5 <git@md-5.net>
2024-05-02 21:22:32 +10:00
CraftBukkit/Spigot
54dd884d80 SPIGOT-7655: ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set
By: md_5 <git@md-5.net>
2024-05-02 21:00:12 +10:00
CraftBukkit/Spigot
23b13ad11a SPIGOT-7653: Update ApiVersion.CURRENT with latest version and include tests
By: Doc <nachito94@msn.com>
2024-05-02 07:00:16 +10:00
CraftBukkit/Spigot
897584d94f Update to Minecraft 1.20.6
By: md_5 <git@md-5.net>
2024-04-30 06:15:00 +10:00
CraftBukkit/Spigot
1390477e34 SPIGOT-7646: Don't duplicate PDC in customTag / retain old values
By: md_5 <git@md-5.net>
2024-04-29 07:38:24 +10:00
CraftBukkit/Spigot
4ae8689c1b SPIGOT-7644: Fix ItemMeta#getAsString
By: md_5 <git@md-5.net>
2024-04-28 07:41:53 +10:00
CraftBukkit/Spigot
6dc63e45f2 Open a direct connection instead of pinging mojang server to check if it is reachable
By: DerFrZocker <derrieple@gmail.com>
2024-04-26 09:16:58 +02:00
CraftBukkit/Spigot
18cee9d332 SPIGOT-7633: Clearer error message for missing particle data
By: md_5 <git@md-5.net>
2024-04-25 16:38:33 +10:00
CraftBukkit/Spigot
b6c483ce92 Fix unit tests always seeing Mojang server as unavailable
By: md_5 <git@md-5.net>
2024-04-25 16:26:03 +10:00
CraftBukkit/Spigot
2f65b80661 SPIGOT-7636: Fix clearing ItemMeta
By: md_5 <git@md-5.net>
2024-04-25 16:15:01 +10:00
CraftBukkit/Spigot
b031cef198 SPIGOT-7635: Fix Player#transfer and cookie methods
By: md_5 <git@md-5.net>
2024-04-25 15:31:25 +10:00
CraftBukkit/Spigot
cd194c870f Fix incorrect Vault implementation
By: md_5 <git@md-5.net>
2024-04-25 10:31:36 +10:00
CraftBukkit/Spigot
715508e0dd SPIGOT-7632: Control middle clicking chest does not copy contents
By: md_5 <git@md-5.net>
2024-04-25 08:41:39 +10:00
CraftBukkit/Spigot
8da4819249 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)

By: DerFrZocker <derrieple@gmail.com>
2024-04-25 07:49:44 +10:00
CraftBukkit/Spigot
83028e946f SPIGOT-7629: Fix loading banner patterns
By: md_5 <git@md-5.net>
2024-04-25 07:45:19 +10:00
CraftBukkit/Spigot
42b7bb16d3 Fix equality of deserialized display names
By: md_5 <git@md-5.net>
2024-04-25 07:26:05 +10:00
CraftBukkit/Spigot
d195996997 SPIGOT-7631: Fix deserialisation of BlockStateMeta
By: md_5 <git@md-5.net>
2024-04-25 07:26:03 +10:00
CraftBukkit/Spigot
2c37043b7f #1384: Disable certain PlayerProfile tests, if Mojang's services or internet are not available
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 18:12:31 +10:00
CraftBukkit/Spigot
4862893bef SPIGOT-7626: sendSignChange() has no effect
By: md_5 <git@md-5.net>
2024-04-24 18:10:39 +10:00
CraftBukkit/Spigot
e190aa6b33 SPIGOT-7625: ItemStack with lore cannot be serialized in 1.20.5
By: DerFrZocker <derrieple@gmail.com>
2024-04-24 17:53:14 +10:00
CraftBukkit/Spigot
86b52ff618 SPIGOT-7621: Fix empty strings in item lore
By: md_5 <git@md-5.net>
2024-04-24 08:12:08 +10:00
CraftBukkit/Spigot
6686458555 SPIGOT-7622: Fix error with Player#sendSignChange
By: md_5 <git@md-5.net>
2024-04-24 08:12:04 +10:00
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
434aec3832 #1361: Add more translation keys
By: Miles Holder <mwholder2005@gmail.com>
2024-03-17 10:26:55 +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
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
e24cb644a8 Increase outdated build delay
By: md_5 <git@md-5.net>
2024-02-29 06:49:54 +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
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
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
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
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
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
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
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
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
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
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
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
c90e518928 #1306: Centralize Bukkit and Minecraft entity conversion
By: DerFrZocker <derrieple@gmail.com>
2023-12-10 10:46:06 +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
5690a0ab1f #1309: Add tests for Bukkit Pose
By: Doc <nachito94@msn.com>
2023-12-07 08:21:33 +11:00
CraftBukkit/Spigot
58cbbcd51a SPIGOT-7528: Fix certain custom shaped recipes
By: md_5 <git@md-5.net>
2023-12-06 20:23:28 +11:00
CraftBukkit/Spigot
dd8ca5c2dc SPIGOT-6026: Pull PotionEffectType and Enchantment from registry
By: DerFrZocker <derrieple@gmail.com>
2023-12-06 03:40:00 +11:00
CraftBukkit/Spigot
8398e12b34 Update to Minecraft 1.20.3
By: md_5 <git@md-5.net>
2023-12-06 03:40:00 +11:00
CraftBukkit/Spigot
afdb1d9bc3 Remove outdated build delay
By: md_5 <git@md-5.net>
2023-12-06 03:38:35 +11:00
CraftBukkit/Spigot
0f6da6b1c8 SPIGOT-7487: entity.remove() on a leash drops a lead item
By: DerFrZocker <derrieple@gmail.com>
2023-12-01 08:01:44 +11:00
CraftBukkit/Spigot
dd57b4aec5 #1305: Don't allow Player removal via Entity#remove
By: DerFrZocker <derrieple@gmail.com>
2023-11-27 19:10:53 +11:00
CraftBukkit/Spigot
95e4221adf #1266: Add support for virtual entities
By: Jishuna <joshl5324@gmail.com>
2023-11-19 19:03:35 +13:00
CraftBukkit/Spigot
9a3c24e787 #1301: Various Sound API improvements
By: Jishuna <joshl5324@gmail.com>
2023-11-17 19:54:48 +13:00
CraftBukkit/Spigot
3e6f41a01b #1297: Change Consumer and Predicates to super
By: DerFrZocker <derrieple@gmail.com>
2023-11-14 19:50:14 +13:00
CraftBukkit/Spigot
45bad8032d Fix SkullMeta configuration serialization / deserialization with note block sound
By: DerFrZocker <derrieple@gmail.com>
2023-11-09 07:28:25 +01:00
CraftBukkit/Spigot
babc4636fa #1291: Improve precondition message in Entity#playEffect
By: Jishuna <joshl5324@gmail.com>
2023-11-09 06:48:57 +11:00
CraftBukkit/Spigot
b11f0ec204 #1285: Add PlayerRecipeBookSettingsChangeEvent
By: Jishuna <joshl5324@gmail.com>
2023-11-09 06:43:34 +11:00
CraftBukkit/Spigot
f64dc66a5f #1290: Add methods to get/set evoker fang attack delay
By: Jishuna <joshl5324@gmail.com>
2023-11-09 06:36:06 +11:00
CraftBukkit/Spigot
80d3f8408a SPIGOT-7514, #1289: Add "Enchantment Roll" API to enchant items according to Minecraft mechanics
By: Miles Holder <mwholder2005@gmail.com>
2023-11-09 06:30:23 +11:00
CraftBukkit/Spigot
33f761a92c #992: Add API to get full result of crafting items
By: md_5 <git@md-5.net>
2023-11-06 20:37:34 +11:00
CraftBukkit/Spigot
e002bc102b #1287: Fix scoreboards not updating in Player#setStatistic
By: Collin <collinjbarber@gmail.com>
2023-10-31 21:48:21 +11:00
CraftBukkit/Spigot
044d4ce4d3 SPIGOT-7510: Try to fix broken reflection usage of plugins
By: DerFrZocker <derrieple@gmail.com>
2023-10-26 07:37:34 +02:00
CraftBukkit/Spigot
511d6753cc #1281: Add hit entity/block to events extending ProjectileHitEvent
By: Jishuna <joshl5324@gmail.com>
2023-10-25 18:54:07 +11:00
CraftBukkit/Spigot
fa30894970 Fix NPE introduced in #17c30fd
By: Jishuna <joshl5324@gmail.com>
2023-10-22 20:36:35 -04:00
CraftBukkit/Spigot
e84271b31b #1279: Back Particle by a minecraft registry
By: DerFrZocker <derrieple@gmail.com>
2023-10-21 13:42:09 +11:00
CraftBukkit/Spigot
17c30fd4e2 Simplify texture updating in CraftMetaSkull
By: md_5 <git@md-5.net>
2023-10-21 13:39:52 +11:00
CraftBukkit/Spigot
b7693bfff8 Increase outdated build delay
By: md_5 <git@md-5.net>
2023-10-20 18:50:05 +11:00
CraftBukkit/Spigot
9713b3f255 #1278: Return correct default light in chunk snapshot
By: DerFrZocker <derrieple@gmail.com>
2023-10-15 20:20:30 +11:00
CraftBukkit/Spigot
34a4561f70 #1277: Add keepSpawnInMemory setting to WorldCreator
By: Jishuna <joshl5324@gmail.com>
2023-10-13 08:11:14 +11:00
CraftBukkit/Spigot
691d43eb42 SPIGOT-5753: Back PotionType by a minecraft registry
By: DerFrZocker <derrieple@gmail.com>
2023-10-09 20:22:53 +11:00
CraftBukkit/Spigot
a2e3f213cf SPIGOT-7080: Add World#locateNearestBiome
By: Jishuna <joshl5324@gmail.com>
2023-10-09 20:11:46 +11:00
CraftBukkit/Spigot
7c225da381 SPIGOT-7502: CraftMetaItem - cannot deserialize BlockStateTag
By: md_5 <git@md-5.net>
2023-10-09 07:16:14 +11:00
CraftBukkit/Spigot
0c90514858 SPIGOT-6400: Use Mockito instead of InvocationHandler
By: DerFrZocker <derrieple@gmail.com>
2023-10-07 15:42:18 +11:00
CraftBukkit/Spigot
c4c6bf8a92 #1272: Only allow one entity in CraftItem instead of two
This pr reverts a change made in 2012 which allowed CraftItem to be a also other entities such as an arrow.
I don't see any practical reason why the original change was done, other than to allow plugin developers to do some stuff in a cursed way.
With the introduction of the PlayerPickupArrowEvent in 2016 there is also a way to access the arrow involved in a better way.
Generally I think the current behavior is a bit strange and should be reverted.

By: DerFrZocker <derrieple@gmail.com>
2023-10-06 07:16:11 +11:00
CraftBukkit/Spigot
39de862c02 SPIGOT-7498: ChunkSnapshot.getBlockEmittedLight() gets 64 blocks upper in Overworld
By: DerFrZocker <derrieple@gmail.com>
2023-10-05 13:12:41 +02:00
CraftBukkit/Spigot
851acb6496 #1267: Add more lightning API
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-10-03 07:32:55 +11:00
CraftBukkit/Spigot
4556ae0f4b #1190: Add Entity#getTrackedBy
By: Jishuna <joshl5324@gmail.com>
2023-10-03 07:26:56 +11:00
CraftBukkit/Spigot
b3ac8604eb #1264: Load Bukkit class before creating Registry item
This fixes a registry load order issue, which could cause that two different instances of the same registry item could exist, when the Bukkit class was not loaded before an item was queried.

By: DerFrZocker <derrieple@gmail.com>
2023-10-03 07:15:37 +11:00
CraftBukkit/Spigot
0c3b8eb4b9 SPIGOT-7496: Failure to load datapacks with multiple identical predicates
By: md_5 <git@md-5.net>
2023-10-02 20:01:30 +11:00
CraftBukkit/Spigot
6e2503b658 #1265: Ensure UTF-8 used in new test resource
By: Doc <nachito94@msn.com>
2023-10-01 15:27:41 +11:00
CraftBukkit/Spigot
570a4195c0 Increase outdated build delay
By: md_5 <git@md-5.net>
2023-09-29 07:26:34 +10:00
CraftBukkit/Spigot
c651c0a51b SPIGOT-7283, SPIGOT-7318: Add AsyncStructureGenerateEvent and BlockState cloning
By: Lauriichan <laura.endress@playuniverse.org>
2023-09-29 06:54:35 +10:00
CraftBukkit/Spigot
215777a5f2 #1263: Remove unused implementation of AbstractProjectile#doesBounce() and #setBounce()
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-09-28 06:46:54 +10:00
CraftBukkit/Spigot
1d153bf51a #1261: Expand DataPack API with 1.20.2 pack version methods
By: Doc <nachito94@msn.com>
2023-09-27 07:10:02 +10:00
CraftBukkit/Spigot
053943414f SPIGOT-7489: Add TeleportDuration to Display Entity
By: Doc <nachito94@msn.com>
2023-09-25 19:20:39 +10:00
CraftBukkit/Spigot
aa4eedd178 #1262: Update Minecraft Wiki URLs
By: Doc <nachito94@msn.com>
2023-09-25 18:53:44 +10:00
CraftBukkit/Spigot
5692b3f59a #1230: Move unstructured PDC NBT serialisation to SNBT
The initial implementation of the CraftNBTTagConfigSerialiser attempted
to represent the entire NBT tree in yaml. While the tree structure
itself is nicely represented, the values and their respective types
become increasingly difficult to properly store in the context of
snakeyml/yml in general.

This is mainly due to the fact that nbt offers a lot of different types
compared to yaml, specifically the primitive arrays and different
floating point values are troublesome as they require parsing via mojang
parsers due to their custom format.

To build a future proof system for unstructured nbt in spigot yml,
this commit moves the entire serialisation fully into SNBT,
producing a single string as output rather than a full yml tree.
SNBT remains easily readable and editable for server owners, which was
one of the main criteria during the initial implementation of the
serialiser (preventing the use of bas64ed gzipped nbt bytes), while also
completely using mojangs parsing, eliminating any need for custom
parsing logic in spigot.

Additionally, a string allows for very straight forward handling of
legacy data by simply parsing strings as SNBT and maps/yml trees as
legacy content, depending on what type snakeyml produces after parsing
the yml content, removing the need for a versioning schema.

By: Bjarne Koll <lynxplay101@gmail.com>
2023-09-24 10:12:19 +10:00
CraftBukkit/Spigot
07002cbfcd #1256: Update tests to JUnit 5
By: DerFrZocker <derrieple@gmail.com>
2023-09-23 18:10:23 +10:00
CraftBukkit/Spigot
da860132b5 Make BARRIER Waterlogged
By: md_5 <git@md-5.net>
2023-09-23 10:00:26 +10:00
CraftBukkit/Spigot
3ff2a7bc12 SPIGOT-7486: Alternate approach to null profile names
By: md_5 <git@md-5.net>
2023-09-22 07:36:30 +10:00
CraftBukkit/Spigot
189292a2f0 SPIGOT-7484: Cancelling PlayerEditBookEvent does not update client's book contents
By: Parker Hawke <hawkeboyz2@hotmail.com>
2023-09-22 03:08:21 +10:00
CraftBukkit/Spigot
4248b8a4d8 #1250: Standardize and centralize Bukkit / Minecraft registry conversion
By: DerFrZocker <derrieple@gmail.com>
2023-09-22 03:02:16 +10:00
CraftBukkit/Spigot
0b9699cc2e #1251: Use Java Consumer instead of Bukkit Consumer
By: DerFrZocker <derrieple@gmail.com>
2023-09-22 02:57:13 +10:00