Commit Graph

3321 Commits

Author SHA1 Message Date
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