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

130 Commits

Autor SHA1 Nachricht Datum
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
md_5
93b8244115 SPIGOT-2787: Keep performing getter null conversion at call sites 2016-11-18 11:07:02 +11:00
md_5
64032adfd2 Remove unit test based on now incorrect assumptions 2016-11-18 09:11:17 +11:00
md_5
c25ddf063a Update to Minecraft 1.11 2016-11-17 12:41:03 +11:00
md_5
9c02c12179 SPIGOT-2481: Implement EnchantmentTarget.BREAKABLE 2016-07-08 12:51:32 +10:00
md_5
0ebb9c7afa BUILDTOOLS-251: Make much of Bukkit locale independent 2016-06-26 19:32:05 +10:00
md_5
a8a4bedd2a Update to Minecraft 1.10 2016-06-09 11:43:49 +10:00
Matthew
5fe510da59 SPIGOT-1934: Expand EnderDragon API - implement dragon phases 2016-03-23 07:30:12 +11:00
t00thpick1
4a8818c5fd SPIGOT-1638 / SPIGOT-1673: Rework Potions API 2016-03-12 12:38:22 +11:00
md_5
3879b98ac2 Ignore FROSTED_ICE in meta unit tests. 2016-03-01 13:30:26 +11:00
md_5
3f5dfeb074 Run Biome test with AbstractTestingBase 2016-03-01 09:49:29 +11:00
md_5
aa008dff0f Update to Minecraft 1.9 2016-03-01 09:32:45 +11:00
Thinkofdeath
a486600749 Update to 1.8.4 2015-05-17 10:32:59 +01:00
Thinkofdeath
350cb9927e Update the rename markers 2015-03-19 21:29:33 +00:00
Thinkofdeath
2acb9e4ec3 SPIGOT-370: Remove LOCKED_CHEST
It doesn't exist anymore and has been deprecated for a year
2015-03-11 17:50:32 +00:00
Thinkofdeath
4e47c1c393 Add a unit test for map colors 2015-03-07 12:57:59 +00:00
Thinkofdeath
d8a9c7be42 Update to Minecraft 1.8.3 2015-03-04 09:48:58 +00:00
Thinkofdeath
df17927d45 Fix PerMaterialTest skipping useful tests for certain blocks 2015-01-25 12:04:21 +00:00
Thinkofdeath
eae50b4f2a Remove DEBUG_ALL_BLOCK_STATES due to it being broken 2014-12-28 16:56:54 +00:00
Thinkofdeath
84699b36a8 Rewrite book handling, Fixes SPIGOT-182 and part of SPIGOT-164 2014-12-11 19:38:09 +00:00
Thinkofdeath
44ea9d88c2 Add CraftMetaTileEntity, fixes the previously broken tests 2014-12-07 13:22:56 +00:00
Thinkofdeath
c571bbe590 Disable some tests whilst issues with them are looked into 2014-12-07 11:50:45 +00:00
Thinkofdeath
24557bc2b3 Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/
2014-11-28 17:16:30 +11:00
Travis Watkins
dbb5e6e3cd Update CraftBukkit to Minecraft 1.7.10 2014-07-08 14:31:10 -05:00
Travis Watkins
a81f26716d Handle profiles in SkullMeta, they don't store a string anymore. 2014-04-17 14:09:53 -05:00
Nate Mortensen
385ace970e Update CraftBukkit to Minecraft 1.7.5 2014-03-21 23:56:34 -04:00
t00thpick1
622a2976d9 [Bleeding] Fix Achievements and Statistics API. Fixes BUKKIT-5305 2014-01-16 00:51:04 -06:00
Wesley Wolfe
1f9f6a51c2 Add failing unit test for ItemMeta-repairability 2014-01-14 18:13:13 -06:00
mbax
2726696652 Update CraftBukkit to Minecraft 1.7.2 2013-11-30 19:26:12 -06:00
Wesley Wolfe
f481c9ee07 Make ItemFactoryTest.java platform agnostic. Fixes BUKKIT-4695
Maven paths that include spaces (and possible other characters) get
improperly translated when using a file handle from a URL. This changes
the unit test to open a stream directly from the URL, providing proper
file resolution on multiple platforms.
2013-08-14 02:37:24 -05:00
Wesley Wolfe
71a6a56572 Fix javac workaround in ItemStackTest 2013-08-06 20:09:42 -05:00
Wesley Wolfe
9ba5c79c30 Add BukkitObjectIOStream tests on top of ItemMeta tests 2013-08-06 20:00:29 -05:00
Wesley Wolfe
1e7f2ebebd Store item attributes. Addresses BUKKIT-4523 2013-07-27 18:00:01 -05:00
Nate Mortensen
6c09066e22 Update CraftBukkit to 1.6.1 2013-07-01 12:10:06 -05:00
GJ
96ba65d506 Add methods to check conflicting enchantments. Adds BUKKIT-3830 2013-03-25 10:51:54 -04:00
nitnelave
ddec7117ee Implement unit test for hasGravity(). Adds BUKKIT-3832 2013-03-20 18:44:22 -04:00
Travis Watkins
83d29e461c Update CraftBukkit to Minecraft 1.5 2013-03-15 13:28:59 -05:00
Wesley Wolfe
01fc296fef Improve the item meta deserialization code-style
Fixed the ItemMetaFireworkTest

Add set power unit tests for FireworkMeta
2013-01-18 02:58:07 -06:00
Wesley Wolfe
647b82032b Add ItemStackMapTest
This test was missing from c056293b38cb9a1296937d91746b175252be044a
2013-01-15 01:22:53 -06:00
Wesley Wolfe
43865e8e67 Update unit test to reflect firework color fix. Fixes BUKKIT-3382
The ItemDye color-int array uses dye data values, not wool.
2013-01-05 17:16:19 -06:00
Wesley Wolfe
182681e384 Update calls to DyeColor getData and getByData. Addresses BUKKIT-2786
These two methods are now deprecated and replaced by the strictly
equivalent calls using wool data.
2013-01-05 17:15:49 -06:00
Wesley Wolfe
708252c020 Implement 1.4.6 ItemMeta. Adds BUKKIT-3236, BUKKIT-3237
Some meta functionality is refactored into common methods.

CraftItemStack uses the ItemMetaKey identifiers for enchantments.

Refactored unit test to include extra functionality; initially only
checking the presence of the DelegateDeserialization annotation.
2012-12-21 10:36:34 -06:00
Wesley Wolfe
78f48258d8 Implement ItemFactory and ItemMeta values. Adds BUKKIT-15 2012-12-17 01:31:41 -06:00
Wesley Wolfe
0f4c206f9b Add isRecord and new material method tests.
Cleaned up all of the CraftBukkit tests, including moving some tests
from MaterialTest to PerMaterialTest.
2012-12-14 02:02:02 -06:00
Wesley Wolfe
4d2a92ed47 Add isSolid() tests for each material 2012-12-09 18:15:34 -06:00
Wesley Wolfe
3dd0580d50 Improved the potion test to detect missing PotionType values. 2012-11-02 00:24:11 -05:00
Wesley Wolfe
1c14586c49 Add CraftArt mappings for Wither. Fixes BUKKIT-2667.
The static assertions are not normally evaluated in the JVM, and failed
to fail when the enums went from size 25 to size 26. This meant missing
values would not be detected at runtime and instead return null,
compounding problems later. The switches should never evaluate to null
so will instead throw runtime assertion errors.

Additional unit tests were added to detect new paintings and assure they
have proper, unique mappings. The test checks both that a mapping
exists, is not null, and does not duplicate another mapping.
2012-11-01 03:06:47 -05:00
Travis Watkins
60819c6693 Update CraftBukkit to Minecraft 1.4(.2). 2012-10-27 22:19:03 -04:00
Wesley Wolfe
03f12497b2 Map org.bukkit.Sound to String values for sending to client.
This change was done to remove the internal sound names from the API.
Along with moving the internal names into CraftBukkit, a unit test was
added for any new sounds added in the API to assure they have a non-null
mapping.
2012-09-26 19:02:05 -04:00
Wesley Wolfe
e2b1514daf Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
feildmaster
764c3f24ee Add test for WorldType's 2012-08-02 09:10:15 -05:00
EvilSeph
3054d020d3 Disabled BukkitDLUpdaterServiceTests. Nice to have, but should not be run on every compile as it relies on DLB being up. Addresses BUKKIT-1140 2012-03-15 06:05:36 -04:00
feildmaster
c73adc9533 Fixed AchievementTest.java 2012-03-01 01:01:16 -05:00
Nathan Adams
236cfed616 Added a built-in update checker. See http://wiki.bukkit.org/Bukkit.yml#auto-updater for new bukkit.yml options. 2012-02-16 22:32:17 +00:00
fullwall
f52665348e [Bleeding] Added Potions API. Fixes BUKKIT-389 2012-02-10 17:41:13 -05:00
Erik Broes
4c2f57592d Add some testing 2012-01-29 11:22:11 +01:00
Andrew Ardill
5124f8f462 Test cloning of CraftItemStacks created with null nms ItemStacks 2011-12-29 22:44:58 +11:00
Andrew Ardill
acfb4f2fbe Test cloning enchanted CraftItemStacks 2011-12-20 00:25:15 +11:00