3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00
Commit graph

107 Commits

Autor SHA1 Nachricht Datum
md_5
84400e66b8 SPIGOT-4871: Manually opened double chest doesn't have close animation 2019-05-05 18:39:58 +10:00
md_5
1fa9a81514 SPIGOT-4802: Add CrossbowMeta 2019-05-01 20:18:01 +10:00
md_5
d7d28b1244 SPIGOT-4818: Unit test banner patterns 2019-04-30 15:20:11 +10:00
md_5
e3df3d5cda Add Override annotations where appropriate 2019-04-28 11:38:01 +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
58c5c617d8 SPIGOT-4736: Serialized ItemStack Lore Doesn't Deserialize 2019-04-25 10:06:40 +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
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
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
a49270b28b Mappings Update 2019-03-17 11:48:53 +11:00
md_5
1dbe87c8cc SPIGOT-4646: Test + fix InventoryWrapper.getContents 2019-03-05 16:59:40 +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
Bjarne Koll
8059a937eb SPIGOT-4577: Fix loss of int/double custom tags when serialized to yaml 2019-01-14 10:12:55 +11:00
Parker Hawke
4b843638ea Add BlockData#getAsString(boolean) to hide unspecified states 2018-12-18 11:03:20 +11:00
md_5
c64fe5080c Mappings Update 2018-12-13 11:00:00 +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
b1d149cfd0 SPIGOT-4489: NOTE_BLOCK incorrectly has BlockStateMeta 2018-11-16 15:18:28 +11:00
md_5
f3f2fe5795 SPIGOT-4455: ChunkData.getType returns legacy material 2018-10-29 07:17:59 +11:00
md_5
b4230a9a7e Update to Minecraft 1.13.2 2018-10-23 06:00:00 +11:00
Nathan Wolf
116cb9a1bc SPIGOT-4399: Add attribute modifier equality test 2018-09-27 20:56:49 +10:00
Senmori
88a5346fea Add API to locate structures. 2018-09-22 17:11:17 +10:00
md_5
d0bb0a1d7e Fix some tests randomly failing 2018-08-26 20:44:50 +10:00
Senmori
a677257885 Add additional tests for CraftBlockData 2018-08-26 18:17:55 +10:00
md_5
ce1af0c348 Update to Minecraft 1.13.1 2018-08-26 12:00:00 +10:00
Senmori
c0df4b82d3 SPIGOT-1936: LootTable API 2018-08-12 18:40:03 +10:00
Senmori
29e7564874 Expand GameRule API 2018-08-11 11:25:09 +10:00
Christos Miniotis
c4220dc24f Add Unit Tests for geHardness and getBlastResistance 2018-08-08 18:07:02 +10:00
md_5
cfc67965f3 Add merging and matching of parsed BlockData 2018-08-06 14:40:06 +10:00
Christos Miniotis
5d489ff4ee SPIGOT-3936: Add isInteractable to Material 2018-08-03 09:09:05 +10:00
md_5
80c43fc1de SPIGOT-4214: Catch attempts to create BlockData for items 2018-08-02 20:24:56 +10:00
md_5
1a6b4f5392 Update to Minecraft 1.13 2018-07-22 12:00:00 +10:00
md_5
49ac8a7446 SPIGOT-4074: Fix createBlockData succeeding on garbage 2018-07-20 10:20:15 +10:00
md_5
92dceb827c Revert "SPIGOT-4035: Enforce case-sensitivity for chat format code matching."
Minecraft allows uppercase colour codes.

This reverts commit d480dc74e5.
2018-07-19 10:07:04 +10:00
md_5
a3b5ef2c3e Amend previous unit test to use JSON rather than toString for validation 2018-07-18 09:40:51 +10:00
Hex
d480dc74e5 SPIGOT-4035: Enforce case-sensitivity for chat format code matching.
This maintains case-insensitivity for URL matching, and adds a unit test to verify correct conversion via CraftChatMessage.
2018-07-18 09:36:16 +10:00
md_5
8c9dea83c3 SPIGOT-4030: Improve CraftItemStack.hasItemMeta 2018-07-17 17:13:55 +10:00
md_5
421c1728c8 Update to Minecraft 1.13-pre7 2018-07-15 10:00:00 +10:00
md_5
fd702e4f44 Fix incorrect unit test name 2018-02-16 10:33:36 +11:00
md_5
bdcc7c7b02 Unit tests for Material.isItem 2018-01-16 09:57:47 +11:00
md_5
fb4564cc37 SPIGOT-2892: Fix some clone implementations and add unit test 2017-12-16 10:18:34 +11:00
Antony Riley
6cb752ea08 Add ChunkDataTest from PR #157 2017-12-08 19:37:15 +11:00
md_5
c037fe3d44 Add color API for Teams 2017-05-28 11:00:02 +10:00
md_5
5195487ec6 Update to Minecraft 1.12-pre2 2017-05-14 12:00:00 +10:00
Phoenix616
7ea2fbb6eb Add Material.isFuel to check if a material is a furnace fuel. 2017-03-24 15:11:13 +11:00
Matthew
04202c0ace SPIGOT-1592: Implement ItemMeta for Spawn Eggs
The Minecraft implementation of spawn eggs is able to construct an entity using all data that is present in the save format, however since the Bukkit API has no such way to construct an entity unattached to a world, and it appears creating such a way is a very challenging task, the decision was instead made to add this API now that 1.11 has entities which may not be represented by data values.
In the future it may be possible to implement a more expanded API cognate with this one.
2016-12-06 21:15:34 +11:00
md_5
b6ad714e85 SPIGOT-2871: Improve BlockStates + BlockStateMeta 2016-12-02 09:29:33 +11:00
md_5
7564d60241 Add stopSound for specific sound category & unit test for SoundCategory 2016-11-19 14:27:18 +11:00