Commit graph

3385 commits

Author SHA1 Message Date
md_5
6bb1f087e7 Loosen restrictions on inventory sizing
Allows creating (but not opening) inventories created eg via Bukkit.createInventory(..., InventoryType.PLAYER);
2019-04-27 12:50:43 +10:00
md_5
6606cd88d2 SPIGOT-4753: Add Pose API 2019-04-27 10:27:05 +10:00
md_5
1949f5835d SPIGOT-4778: Bell Attachment is missing 2019-04-27 09:33:00 +10:00
md_5
4b9b0f4d5b Add variant API to MushroomCow 2019-04-26 14:48:19 +10:00
md_5
e2bbf62bf4 Don't concurrently execute ChunkGenerators by default 2019-04-26 12:08:59 +10:00
md_5
28adbcff5b SPIGOT-4751: Update mappings version 2019-04-26 09:08:32 +10:00
md_5
aed901654b SPIGOT-4744: Cannot spawn Cat entity 2019-04-25 14:59:08 +10:00
md_5
76a855c8ce SPIGOT-4742: Make Sign Colorable 2019-04-25 14:49:23 +10:00
Bjarne Koll
42f88f72b5 Replace ItemTag API with new API that also expands to Tiles and Entities 2019-04-25 14:42:39 +10:00
md_5
724ec10f33 SPIGOT-4741: InventoryHolder no longer returns DoubleChest 2019-04-25 13:57:18 +10:00
md_5
ed20842bcf Update to Minecraft 1.14 2019-04-25 12:00:00 +10:00
md_5
58c5c617d8 SPIGOT-4736: Serialized ItemStack Lore Doesn't Deserialize 2019-04-25 10:06:40 +10:00
md_5
de6cdd0364 SPIGOT-4735: ProjectileHitEvent Fires Immediately 2019-04-25 09:23:21 +10:00
md_5
14df075f80 SPIGOT-4728: Fix clicking on custom ender chests 2019-04-24 22:02:45 +10:00
md_5
6d504c2d4c SPIGOT-4725: Virtual Merchant GUI crashes server 2019-04-24 10:10:41 +10:00
md_5
c8d1e94209 SPIGOT-4718: Fix creating odd inventory sizes 2019-04-24 10:01:54 +10:00
md_5
005e1bbc13 SPIGOT-4726: Lore not being applied to new items 2019-04-24 09:54:58 +10:00
md_5
bfec7c79cd Apply outdated build delay 2019-04-24 09:52:43 +10:00
md_5
93ad381a68 SPIGOT-4727: Fix CraftEvil for legacy plugins 2019-04-24 09:40:42 +10:00
md_5
364b6fbb73 Fix weird test import in EnderDragonPhaseTest 2019-04-23 21:28:41 +10:00
md_5
0ec9b61de9 SPIGOT-4717: Fix adding recipes after clearRecipes is called 2019-04-23 20:53:56 +10:00
md_5
5fea790398 Apply import ordering rules to CraftBukkit classes 2019-04-23 14:56:58 +10:00
md_5
48c4c5ca81 Begin implementation of CheckStyle style checking 2019-04-23 14:00:30 +10:00
md_5
a2d787f6eb Update to Minecraft 1.14-pre5 2019-04-23 12:00:00 +10:00
md_5
a46fdbc62c Remove outdated build delay. 2019-04-22 16:44:07 +10:00
md_5
9ead700959 SPIGOT-4677: Add minecraft.admin.command_feedback permission 2019-04-20 13:24:20 +10:00
blablubbabc
c3749a2358 Remove the Damage tag from items when it is 0.
CraftBukkit (and Minecraft as well in some cases, such as when getting
an item from the creative inventory menu) will omit the Damage tag when
it is zero. However, minecraft will add the tag in some situations
nevertheless, such as when loading the ItemStack, or when explictly
setting the item undamaged.

These items (with and without the Damage tag for undamaged items) will
be considered as different by minecraft and CraftBukkit in various
situations, even though they should not. In CraftBukkit these items will
actually only be considered unsimilar if the items' metadata is not
'empty' (if it contains other additional metadata, such as enchantments,
etc.).

If the item's tag is empty after removing the Damage tag, it gets
completely removed. The setRepairCost function was adapted to behave in
the same way (removal of the tag if it becomes empty).
2019-04-20 13:00:41 +10:00
md_5
7c395d429c SPIGOT-4681: Note about additional world creation on STARTUP 2019-04-08 20:32:00 +10:00
md_5
812f66aa99 SPIGOT-4684: Update persistence of converting zombie villagers 2019-04-08 20:29:18 +10:00
md_5
f40143ef5e SPIGOT-4691: Fix custom world generator when placing tiles 2019-04-05 19:59:47 +11:00
blablubbabc
0e1cea5a4a Added Entity#setRotation.
Unlike Entity#teleport this can also be used while the entity is inside a vehicle.
2019-04-03 19:46:27 +11:00
md_5
0bf75bbde2 SPIGOT-4686: Enchantment ordering nondeterministic 2019-04-02 21:13:05 +11:00
md_5
4c8327f721 SPIGOT-4673: EntitySpawnEvent should not be called for players 2019-03-26 20:42:04 +11:00
md_5
d65a2576e4 SPIGOT-4674: Allow spawning hanging on top/bottom of block 2019-03-22 20:33:20 +11:00
md_5
1be05a2146 Prepare for imminent Java 12 release 2019-03-17 12:53:55 +11:00
md_5
a49270b28b Mappings Update 2019-03-17 11:48:53 +11:00
blablubbabc
8d8475fc46 SPIGOT-4666: Force parameter in HumanEntity#sleep
Also moved the application of the force parameter inside EntityHuman, to
no longer allow bypassing of very essential checks.
2019-03-13 18:31:59 +11:00
Yannick Lamprecht
39a287b7da Don't ignore newlines in PlayerListHeader/Footer 2019-03-10 11:04:15 +11:00
md_5
1dbe87c8cc SPIGOT-4646: Test + fix InventoryWrapper.getContents 2019-03-05 16:59:40 +11:00
md_5
faa6226959 SPIGOT-4650: Charging API for Vex 2019-03-05 16:47:33 +11:00
Parker Hawke
0f708cbf51 Add love mode API to Animals 2019-02-28 16:29:24 +11:00
md_5
cb98c6eaef Fix line endings in CraftDefaultPermissions 2019-02-25 19:44:21 +11:00
blablubbabc
4e4cde4816 Fix experience reward flag gets lost during MerchantRecipe conversion 2019-02-24 20:49:45 +11:00
md_5
6430d9c0ba SPIGOT-4632: BlockState location is not fixed 2019-02-21 20:32:44 +11:00
blablubbabc
14cd1688da Fix CraftInventoryMerchant#getSelectedRecipe if there is no active merchant recipe. 2019-02-21 20:29:37 +11:00
blablubbabc
c24abab787 Load custom permissions after default permissions. 2019-02-18 10:00:15 +11:00
Matthew Miller
bc99dfe89f Make tags Keyed 2019-02-17 16:21:01 +11:00
Matthew Miller
6fce004fa2 Added a method to get a list of tags 2019-02-17 16:20:53 +11:00
Brokkonaut
d158f2e993 Fix EntityPickupItemEvent getRemaining / PlayerInventory#canHold
Without this change the calculation of fitting items was incorrect, so event.getRemaining() did return 0 when it should not be 0.
2019-02-13 16:59:39 +11:00
md_5
b26fb37427 Update outdated spigot link 2019-02-09 10:42:26 +11:00
md_5
c7ba97906c Fix incorrect method descriptor in previous commit 2019-02-06 08:08:45 +11:00
md_5
3d19f011e9 SPIGOT-4608: Improve quality of MapMeta APIs 2019-02-05 21:31:05 +11:00
md_5
ad6070dffd SPIGOT-4193: API for selecting entities by strings 2019-01-31 15:08:25 +11:00
md_5
ed274c517f SPIGOT-4597: Make BlockDropItemEvent use a list 2019-01-30 11:20:39 +11:00
md_5
1734f378f7 SPIGOT-4598: Shift click on custom workbench inventory causes crash 2019-01-30 11:10:04 +11:00
md_5
1748af891b Consistent multiple choice APIs for RecipeChoice. 2019-01-25 14:06:58 +11:00
md_5
61c762f448 Add CookTimeTotal API to Furnace 2019-01-23 10:26:43 +11:00
md_5
1a64d4ae2b SPIGOT-4587: Enforce at least one valid choice for FurnaceRecipe 2019-01-21 10:39:24 +11:00
md_5
50fbc3f190 SPIGOT-4576: Fix attributes in itemstack internal data being lost 2019-01-14 10:20:24 +11:00
Bjarne Koll
8059a937eb SPIGOT-4577: Fix loss of int/double custom tags when serialized to yaml 2019-01-14 10:12:55 +11:00
md_5
07e504c37f Clarify exception thrown when setting drop chance for player inventory 2019-01-13 14:11:12 +11:00
md_5
9dc56581e6 SPIGOT-4570: Add FluidLevelChangeEvent 2019-01-08 21:23:11 +11:00
md_5
b15abb12cb SPIGOT-4566: Don't special case NETHER_PORTAL teleport reason from plugins 2019-01-08 09:26:34 +11:00
hauno
100c3f07e9 Cap Objective Score Length
Adds a check for Score arguments that would crash the client
2019-01-05 16:21:07 +11:00
Andrew Krieger
6e842759cc Cross World Entity Teleportation
Use Entity.teleportTo for cross-world teleportation in CraftEntity.
2019-01-05 16:21:07 +11:00
md_5
7deba1c606 Check for blank OfflinePlayer Names 2019-01-05 16:21:07 +11:00
md_5
b021230837 Cap Channel Registrations 2019-01-05 16:21:07 +11:00
md_5
a610dcd821 Identify CraftScheduler threads with useful names 2019-01-05 16:21:07 +11:00
md_5
917411fd80 Remove redundant BlockPosition creation from sleep API 2019-01-02 22:58:07 +11:00
md_5
756c38d1e4 Add RecipeChoice.ExactChoice API for NBT matches on ingredients 2019-01-02 15:56:21 +11:00
md_5
8e65d8df6c SPIGOT-4560: Add HumanEntity.sleep and related APIs 2019-01-02 14:43:12 +11:00
md_5
5be2ddcbd5 Replace version constants with methods to prevent compiler inlining 2018-12-30 16:00:31 +11:00
md_5
a5b9c7b3ee Use API method to create offset command completions 2018-12-28 10:34:51 +11:00
md_5
2bc7d1df25 SPIGOT-3747: Add API for force loaded chunks 2018-12-27 12:44:50 +11:00
md_5
a408f3751e SPIGOT-3538: Add getHitBlockFace for ProjectileHitEvent 2018-12-27 12:19:45 +11:00
md_5
b54b9409e0 SPIGOT-2864: Make Arrow / Item setTicksLived behave like FallingBlock 2018-12-27 12:02:17 +11:00
md_5
79ded7a8ca SPIGOT-1811: Death message not shown on respawn screen 2018-12-27 11:37:19 +11:00
md_5
2b2d084ac9 Add InventoryView#getSlotType 2018-12-26 10:44:39 +11:00
md_5
01a9959aaf Do not use deprecated ItemSpawnEvent constructor 2018-12-26 08:00:00 +11:00
md_5
9642498d24 SPIGOT-4547: Call EntitySpawnEvent as general spawn fallback event 2018-12-26 08:00:00 +11:00
md_5
63db044596 Add API to get / set base arrow damage 2018-12-26 08:00:00 +11:00
md_5
531c25d73f Add CraftMagicNumbers.MAPPINGS_VERSION for use by NMS plugins 2018-12-26 08:00:00 +11:00
md_5
d05c8b1481 Mappings Update 2018-12-26 08:00:00 +11:00
md_5
bd36e200da SPIGOT-4551: Ignore invalid attribute modifier slots 2018-12-25 09:27:17 +11:00
md_5
dff66dfccd Reduce copying of positions from block states 2018-12-22 11:32:11 +11:00
md_5
24c5e68c5f SPIGOT-4493: Allow burnt out furnaces to remain lit like Vanilla whilst retaining SPIGOT-844 API 2018-12-22 11:04:31 +11:00
md_5
bc943daf94 Fix Jukebox API not synchronizing playing data with state 2018-12-22 11:01:54 +11:00
md_5
fe89a8c1bb SPIGOT-4503: Add API to insert complete ItemStack into Jukebox 2018-12-22 10:50:57 +11:00
md_5
fc1024944e Make CraftBlockState use BlockPosition 2018-12-22 10:29:53 +11:00
md_5
89ab488721 SPIGOT-4543: Jukebox playing calls should not use legacy data 2018-12-22 10:24:13 +11:00
md_5
1b982fd67e Tweak Block.getTemperature to return actual block temperature 2018-12-19 10:53:08 +11:00
Evoluseis
f55c819185 SPIGOT-2151: Add support for getting simple bounding box of a block 2018-12-19 10:34:47 +11:00
Parker Hawke
4b843638ea Add BlockData#getAsString(boolean) to hide unspecified states 2018-12-18 11:03:20 +11:00
md_5
38cf676e32 SPIGOT-4534: CreatureSpawnEvent not being called for CHUNK_GEN 2018-12-17 12:36:12 +11:00
md_5
6ec8ea5cf4 SPIGOT-4526: Add conversion time API for Zombie & subclasses 2018-12-13 14:10:36 +11:00
md_5
c64fe5080c Mappings Update 2018-12-13 11:00:00 +11:00
md_5
cc1e3497db Add PlayerSpawned API for Endermites 2018-12-10 10:39:54 +11:00
Javacraft
ad7b00b762 Use ImmutableList rather than AbstractList for CraftMetaBook
Although the AbstracList implementation does return a list, it is a
of a form that does not play well with libraries using reflection,
such as Gson. Leveraging a stream and the ImmutableList collector,
this process is greatly simplified (and cleaner).
2018-12-07 12:59:08 +11:00
Javacraft
5f5a6767e8 Fix setRecipes(List) not setting Knowledge Book recipes.
Iterator source for recipe NamespacedKeys is changed to use method
parameter 'recipes' specifying recipes to be added, rather than class
property 'recipes', to which recipes are added.
2018-12-05 19:22:03 -05:00
md_5
aa36c8417b Mappings Update 2018-12-06 10:00:00 +11:00
nathat890
20fc5bea2c Add list of entities to EntityTransformEvent & move die calls 2018-12-05 09:51:45 +11:00
Bjarne Koll
38e4c013b6 SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks 2018-12-04 09:44:56 +11:00
md_5
a4c555b6b1 Add Vanilla help to default permissions 2018-12-03 15:16:37 +11:00
md_5
282dad196d Tweak outdated windows 2018-11-28 15:22:20 +11:00
md_5
97b0057ad3 SPIGOT-4500: callSyncMethod broken 2018-11-24 17:52:29 +11:00
md_5
8cd538e661 SPIGOT-4498: Crash on startup 2018-11-23 14:20:59 +11:00
md_5
b4ee04baae SPIGOT-4496: Undeprecate MapView.getId and make int 2018-11-23 11:50:48 +11:00
md_5
ec937d0e07 SPIGOT-4472: Add Consumer scheduler methods 2018-11-23 11:40:18 +11:00
md_5
b1d149cfd0 SPIGOT-4489: NOTE_BLOCK incorrectly has BlockStateMeta 2018-11-16 15:18:28 +11:00
nathat890
d2c422f13e SPIGOT-4339: Add EntityTransformEvent
Thanks klugemonkey for some contributions in https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/351/overview
2018-11-14 14:10:22 +11:00
Yannick Lamprecht
3697ec7a60 Add API to manipulate boss bar of entities and those created by commands 2018-11-10 20:23:17 +11:00
md_5
ca22de36ab SPIGOT-4469: Age API for EndGateway 2018-11-07 11:15:24 +11:00
md_5
f0398e444e SPIGOT-4438: Add choice API to furnace recipes 2018-11-03 21:04:33 +11:00
md_5
96c461b3a5 API to get client side view distance. 2018-11-02 21:24:14 +11:00
md_5
e2785f4eda Remove note about development build 2018-11-02 19:19:00 +11:00
Ugleh
a8000588cb SPIGOT-4395: Additions to PlayerBedEnterEvent.
Contributions by blablubbabc as well - https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/500/overview
2018-11-02 18:32:19 +11:00
md_5
aed3aecbaf Make natural item dropping mimic Vanilla
Make sure we don't regress SPIGOT-260 by using exact drop method like Entity does
2018-10-31 20:10:39 +11:00
AndaBlock
1057710a78 SPIGOT-4376: Add draft BlockDropItemEvent 2018-10-31 19:55:53 +11:00
md_5
f3f2fe5795 SPIGOT-4455: ChunkData.getType returns legacy material 2018-10-29 07:17:59 +11:00
md_5
5184216f27 SPIGOT-4447: Clear error for people trying to set an item as a block 2018-10-27 08:21:49 +11:00
md_5
d6b57bd963 SPIGOT-4446: Legacy rotation methods don't work for wall mounted skulls 2018-10-27 08:15:41 +11:00
blablubbabc
4a47be6164 Add ray tracing and bounding box API 2018-10-26 20:00:00 +11:00
md_5
a835b03538 SPIGOT-4443: Scoreboard RenderType API 2018-10-26 19:38:41 +11:00
md_5
b4230a9a7e Update to Minecraft 1.13.2 2018-10-23 06:00:00 +11:00
md_5
a639ae44d2 Remove outdated build delay. 2018-10-23 05:57:42 +11:00
blablubbabc
e3d7b2fd96 Add Block#isPassable 2018-10-13 09:49:25 +11:00
md_5
e7ced970d2 Catch plugins setting null Material or BlockData to blocks 2018-10-13 09:43:05 +11:00
Parker Hawke
1ceee63341 Implement maximum repair cost API to AnvilInventory 2018-10-06 19:26:40 +10:00
md_5
6a0c4e1cc2 SPIGOT-4411: Document use of null for shulker colours 2018-10-06 10:17:06 +10:00
Parker Hawke
7a2f486768 Implement PlayerRecipeDiscoverEvent and methods to (un/)discover recipes 2018-10-01 19:15:12 +10:00
Nathan Wolf
116cb9a1bc SPIGOT-4399: Add attribute modifier equality test 2018-09-27 20:56:49 +10:00
md_5
5ee1c18a4b SPIGOT-4398: Set ASM7_EXPERIMENTAL flag 2018-09-27 20:54:14 +10:00
md_5
1a7f2d109e SPIGOT-4397: isChunkGenerated API 2018-09-26 17:19:16 +10:00
Ugleh
c1ecaa2ff7 API to generate filled explorer maps 2018-09-24 19:32:42 +10:00
md_5
5cffeca21f SPIGOT-4391: Sign editable API 2018-09-24 15:01:10 +10:00
md_5
7d506c6cd7 SPIGOT-4389: Fix empty custom inventory title 2018-09-23 19:14:32 +10:00
Senmori
fc10dec5f3 Don't throw error on invalid data in CraftMetaItem. 2018-09-22 10:25:27 -04:00
md_5
65bb2d0f7d Increase expiration time to 10 days 2018-09-22 17:14:27 +10:00
Senmori
88a5346fea Add API to locate structures. 2018-09-22 17:11:17 +10:00
Senmori
8164f4b25b SPIGOT-1916: Attribute modifiers for ItemStacks 2018-09-21 20:51:04 +10:00
Parker Hawke
a222e4a252 Implement BatToggleSleepEvent 2018-09-17 16:49:45 +10:00
md_5
94b8708aca SPIGOT-4373: Item display colours are white by default
Should probably look at all this code at some point
2018-09-16 08:30:11 +10:00
md_5
1cead6280f SPIGOT-4363: Bad colours in leather armor 2018-09-11 20:44:34 +10:00
simpleauthority
953e1d601a SPIGOT-4314: Ability to change item in frame without playing sound 2018-09-11 20:39:58 +10:00
md_5
3123a069bf SPIGOT-4352: MoistureChangeEvent 2018-09-09 18:56:38 +10:00
Pante
19d654bd5e Add ServerLoadEvent 2018-09-08 13:40:42 +10:00
md_5
3eb8af2340 SPIGOT-4348: Use online player for setting skull owner if possible 2018-09-06 20:47:37 +10:00
Senmori
ee5efeb0dc Add getFacing method to get the current cardinal direction an entity is facing. 2018-09-03 18:06:58 +10:00
md_5
60d7982024 SPIGOT-4338: breedCause API 2018-09-01 19:28:12 +10:00
md_5
dc69d2b3db Fix unbound shaped recipe ingredients 2018-09-01 14:12:20 +10:00