Commit Graph

278 Commits

Author SHA1 Message Date
Owen1212055 30b4dedabb DataComponent API
Exposes the data component logic used by vanilla ItemStack to API
consumers as a version-specific API.
The types and methods introduced by this patch do not follow the general
API deprecation contracts and will be adapted to each new minecraft
release without backwards compatibility measures.
2024-04-28 19:53:06 -04:00
Tamion 7b11ab058b Add recipeBrewTime 2024-09-20 17:39:22 +02:00
Jake Potrebic 4fb38d1c36 create TileStateInventoryHolder
a missing interface to centralize getSnapshotInventory methods
2024-09-20 21:40:23 -07:00
Jake Potrebic 0f47ed5252 Add FeatureFlag API 2023-03-09 11:24:43 -08:00
Jake Potrebic 3fc7f9269a Deprecate for removal all OldEnum-related methods 2024-09-07 11:14:31 -07:00
SoSeDiK fd8df6aeed More Chest Block API 2024-05-01 08:22:13 +03:00
Jake Potrebic 6fedaecd54 Fix SpawnerEntry$Equipment API 2024-04-26 17:00:00 -07:00
vicisacat d19f69b3eb Expanded Hopper API 2024-03-15 17:35:18 +01:00
FireInstall 94c7a67620 Expose LootTable of DecoratedPot 2024-01-20 16:20:07 +01:00
Jake Potrebic d513222b59 Improve Registry
Adds Registry#getKey(Object) which should be the
primary way people get the key for an object. Registry
items need to exist without having a key and so
getKey() methods on Keyed objects that have a registry
are marked as Deprecated or Obsolete.
2023-12-20 02:03:10 -08:00
Jake Potrebic 1ab1d0f10a Experimental annotations change 2023-12-09 11:47:53 -08:00
TrollyLoki 159f98e5a7 Add API to get the collision shape of a block before it's placed 2023-10-11 00:45:54 -04:00
Oliwier Miodun c4091d62f4 SculkCatalyst bloom API 2023-07-10 17:59:42 +02:00
Jake Potrebic 3a91b864bb More Sign Block API
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
2023-06-23 12:16:35 -07:00
Jake Potrebic 4b5bb29329 Add BlockLockCheckEvent 2022-05-21 20:59:56 -07:00
MelnCat 2b86699483 Add getDrops to BlockState
Originally added isPreferredTool to BlockData but
upstream added that.
2022-08-12 23:24:53 -07:00
Owen1212055 763c827879 Block Ticking API 2021-12-26 13:23:52 -05:00
Owen1212055 b4e03d9221 Nameable Banner API
Co-Authored-By: Swedz <me@swedz.net>
2022-04-07 17:49:38 -04:00
Jason Penilla ffdfd64ea5 Add getComputedBiome API 2022-03-14 22:45:32 -07:00
Jake Potrebic 64f342f5fb Add missing block data API
General purpose patch adding missing getters/setters to BlockData and
its child types.

Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
Co-authored-by: Fabrizio La Rosa <lr.fabrizio@gmail.com>
2021-10-16 22:57:10 -07:00
Jake Potrebic 585c6710fd Configurable sculk sensor listener range 2021-08-19 18:43:16 -07:00
Jake Potrebic 8769e2d5a5 Furnace RecipesUsed API 2022-01-13 15:21:08 -08:00
LemonCaramel a3eeb99eea Add more Campfire API 2021-07-16 00:38:52 +09:00
Jake Potrebic 1de93777a5 Add hasCollision methods to various places 2021-11-04 11:50:35 -07:00
Jake Potrebic b4f3eb5fa1 More CommandBlock API 2021-05-28 21:47:39 -07:00
LemonCaramel c9ba0ebadb More Lidded Block API 2021-05-23 17:49:31 +09:00
Owen1212055 b00a393416 Add EntityBlockStorage#clearEntities() 2021-04-05 18:12:06 -04:00
Jake Potrebic bcd78c9bf2 Add Block#isValidTool
Deprecated for removal
2020-07-06 12:44:23 -07:00
Aikar 0b52df89b3 Additional Block Material API's
Faster version for isSolid() that utilizes NMS's state for isSolid instead of the slower
process to do this in the Bukkit API

Adds API for buildable, replaceable, burnable too.
2020-12-30 17:27:27 -05:00
Ineusia 72ab93ca8a Add Destroy Speed API
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2020-10-26 11:37:48 -05:00
Jake Potrebic 40ac3e15db Beacon API - custom effect ranges 2020-06-24 12:38:15 -06:00
Jake Potrebic f610d0b477 Add methods to get translation keys
Co-authored-by: MeFisto94 <MeFisto94@users.noreply.github.com>
2020-08-11 19:17:46 +02:00
Phoenix616 78acda62f2 Inventory getHolder method without block snapshot 2020-06-10 23:55:16 +01:00
Jake Potrebic 1cf2aaef30 Improve Block#breakNaturally API
Adds bool param to trigger world particle effects

Adds bool param to trigger exp drops for blocks

Co-authored-by: William Blake Galbreath <Blake.Galbreath@GMail.com>
2020-01-02 12:25:16 -06:00
simpleauthority d2e1163917 Add BlockSoundGroup interface
This PR adds the getSoundGroup() method in Block which returns a BlockSoundGroup
2019-05-28 03:41:28 -07:00
Aikar 2825ece820 Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause
a ton of noise to plugin developers.

Use ApiStatus.Internal instead of Deprecated for actual internal API
that continues to have use (internally).

These do not help plugin developers if they bring moise noise than value.
2019-03-24 18:39:01 -04:00
Tassu 6d98fbc47d Implement furnace cook speed multiplier API
Signed-off-by: Tassu <git@tassu.me>
2018-09-13 08:45:01 +03:00
Spottedleaf 8170ae9d64 Allow Blocks to be accessed via a long key
The key can be retrieved via methods Location#toBlockKey() and
Block#getBlockKey()

World provides lookup for blocks by long key via method World#getBlockAtKey(long)

The formatting for the key is as follows:

10 bit y|27 bit z|27 bit x

The y value is considered unsigned while z and x are considered two's complement

Y range: [0, 1023]
X, Z range: [-67 108 864, 67 108 863]
2018-08-14 21:42:10 -07:00
Aikar 142b065979 Add setPlayerProfile API for Skulls
This allows you to create already filled textures on Skulls to avoid texture lookups
which commonly cause rate limit issues with Mojang API
2018-01-19 00:29:28 -05:00
Aikar 8306cc5b4f API to get a BlockState without a snapshot
This allows you to get a BlockState without creating a snapshot, operating
on the real tile entity.

This is useful for where performance is needed
2017-11-06 21:10:01 -05:00
Zach Brown 0c37d20354 Fix upstream javadocs 2017-06-10 16:59:40 -05:00
Aikar 397d3cac4b LootTable API
Provides API to control what Loot Table an object uses.

Also provides an Event to control if a lootable inventory should
auto replenish for a player.

Provides methods to determine players looted state for an object
2016-05-01 15:19:49 -04:00
Riley Park 15081a5912 Adventure
Co-authored-by: zml <zml@stellardrift.ca>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
2021-01-29 17:21:55 +01:00
Bukkit/Spigot 88499aa05b Update to Minecraft 1.21.4
By: md_5 <git@md-5.net>
2024-12-04 03:20:00 +11:00
Bukkit/Spigot 0381154988 SPIGOT-7964: Fix typo in Deprecation annotation
By: md_5 <git@md-5.net>
2024-11-25 20:01:43 +11:00
Bukkit/Spigot 0023e5549a #1082: Add "since" to Deprecation annotations
By: DerFrZocker <derrieple@gmail.com>
2024-11-25 07:52:33 +11:00
Bukkit/Spigot a45964ac0e #1073: Make Biome an interface
By: DerFrZocker <derrieple@gmail.com>
2024-11-01 08:05:31 +11:00
Bukkit/Spigot 4243e6b666 #1072: Fix bad naming for Vault State methods
By: Doc <nachito94@msn.com>
2024-10-29 06:43:24 +11:00
Bukkit/Spigot cd27f1b0c7 Update to Minecraft 1.21.2
By: md_5 <git@md-5.net>
2024-10-23 02:15:00 +11:00
Bukkit/Spigot 42cd6c82ff #1058: Add tests for Minecraft registry <-> Bukkit fields
By: DerFrZocker <derrieple@gmail.com>
2024-09-27 08:15:05 +10:00