Commit graph

110 commits

Author SHA1 Message Date
Bukkit/Spigot
d66f5c3295 Remove package-info from tests, breaks some IDEs
By: md_5 <git@md-5.net>
2020-01-29 09:24:17 +11:00
Bukkit/Spigot
0c53c95293 Add additional checkstyle checks
By: md_5 <git@md-5.net>
2020-01-24 17:37:30 +11:00
Bukkit/Spigot
d16413b877 Javadoc improvements per checkstyle
By: md_5 <git@md-5.net>
2019-12-22 09:56:28 +11:00
Bukkit/Spigot
e5c9e369ed SPIGOT-5240: Vector.angle not valid for angles very close to each other
By: md_5 <git@md-5.net>
2019-08-03 09:53:50 +10:00
Bukkit/Spigot
7a2194f937 Explicitly deprecate all MaterialData subclasses
By: md_5 <git@md-5.net>
2019-05-20 20:09:17 +10:00
Bukkit/Spigot
86dee5827e SPIGOT-4833: Allow access to LivingEntity memories
By: Yannick Lamprecht <yannicklamprecht@live.de>
2019-05-19 19:57:33 +10:00
Bukkit/Spigot
4c0157d6de SPIGOT-4815: Location.equals() not working
By: md_5 <git@md-5.net>
2019-04-30 09:36:30 +10:00
Bukkit/Spigot
82854b7bd7 Add Override annotations where appropriate
By: md_5 <git@md-5.net>
2019-04-28 11:37:52 +10:00
Bukkit/Spigot
e9ae9842f0 Apply and enforce import ordering rules
By: md_5 <git@md-5.net>
2019-04-23 14:33:57 +10:00
Bukkit/Spigot
c240b58f66 Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
2019-04-23 14:00:20 +10:00
Bukkit/Spigot
30a442aef7 Update to Minecraft 1.14-pre5
By: md_5 <git@md-5.net>
2019-04-23 12:00:00 +10:00
Bukkit/Spigot
4526a9f21e Add getObject methods to ConfigurationSection
By: stonar96 <minecraft.stonar96@gmail.com>
2019-03-19 23:19:09 +01:00
Bukkit/Spigot
b294ce797b Remove debug print from SyntheticEventTest
By: md_5 <git@md-5.net>
2019-03-16 20:48:55 +11:00
Bukkit/Spigot
416c865476 SPIGOT-2540: Add nullability annotations to entire Bukkit API
By: Darkyenus <darkyenus@gmail.com>
2019-03-13 17:42:57 +11:00
Bukkit/Spigot
e069a80fd8 Use TestPlugin for ConversationTest
By: md_5 <git@md-5.net>
2019-03-09 15:10:40 +11:00
Bukkit/Spigot
1c79fa6a3f Introduce rotation methods to the Vector class
By: Bjarne Koll <LynxPlay101@gmail.com>
2019-02-14 21:28:20 +01:00
Bukkit/Spigot
6a8d62ff22 SPIGOT-4558: Preserve user order in the face of copied defaults in configurations
By: md_5 <git@md-5.net>
2018-12-31 17:10:56 +11:00
Bukkit/Spigot
55523cfcfc Add ray tracing and bounding box API
By: blablubbabc <lukas@wirsindwir.de>
2018-10-26 19:59:36 +11:00
Bukkit/Spigot
017a3c55d7 SPIGOT-4439: Allow minecraft:brand channel for use by plugins.
By: md_5 <git@md-5.net>
2018-10-25 20:38:53 +11:00
Bukkit/Spigot
6ea05f1541 Make matchMaterial accept the minecraft: namespace
By: md_5 <git@md-5.net>
2018-08-29 19:26:58 +10:00
Bukkit/Spigot
8573509379 Clarify NamespacedKey error messages.
Add new tests for NamespacedKeys.

By: Senmori <thesenmori@gmail.com>
2018-07-20 13:14:30 -04:00
Bukkit/Spigot
767e4f6ccf Update to Minecraft 1.13-pre7
By: md_5 <git@md-5.net>
2018-07-15 10:00:00 +10:00
Bukkit/Spigot
536017764d Be more strict about what constitutes a valid NamespacedKey
* Brings us largely in line with what is supported by the implementation
* Adds unit tests

By: md_5 <git@md-5.net>
2018-07-10 12:21:23 +10:00
Bukkit/Spigot
417599c2ab Some minor improvements from static analysis
By: md_5 <git@md-5.net>
2017-11-07 17:28:28 +11:00
Bukkit/Spigot
28dfa926fd SPIGOT-3568: Fix single letter pagination edge case
By: md_5 <git@md-5.net>
2017-09-18 20:46:38 +10:00
Bukkit/Spigot
158afaffeb Remove Ebean ORM
By: md_5 <git@md-5.net>
2017-05-14 12:00:00 +10:00
Bukkit/Spigot
f1fb3d9462 Update to Minecraft 1.11
By: md_5 <git@md-5.net>
2016-11-17 12:40:59 +11:00
Bukkit/Spigot
7f7f1608e8 BUILDTOOLS-251: Make much of Bukkit locale independent
By: md_5 <git@md-5.net>
2016-06-26 19:31:59 +10:00
Bukkit/Spigot
640346e011 Add method to check configuration path existence, ignoring defaults.
By: FakeNeth <cneth97@gmail.com>
2016-04-05 18:24:05 -04:00
Bukkit/Spigot
2c724bafe6 SPIGOT-2013 Added Comparator/Hopper material, enhanced Diode
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-26 09:27:04 +11:00
Bukkit/Spigot
c432218993 SPIGOT-1682: Fixed block data for Beetroot
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-26 09:26:20 +11:00
Bukkit/Spigot
3e1845033a SPIGOT-1464: Fixed setting Mushroom faces
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-20 14:20:46 +00:00
Bukkit/Spigot
949890d29d SPIGOT-1638 / SPIGOT-1673: Rework Potions API
By: t00thpick1 <t00thpick1dirko@gmail.com>
2016-03-02 20:45:27 -05:00
Bukkit/Spigot
f2fcb9f8bd SPIGOT-1389: Fixed issues with setting tree species by expanding API
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-03-01 08:30:03 +11:00
Bukkit/Spigot
0d19656632 SPIGOT-1393: Fixed door direction mask
By: ryanbennitt <ryanbennitt@googlemail.com>
2016-01-11 18:07:51 +00:00
Bukkit/Spigot
5232a2cbba SPIGOT-918: Add constructor for DyeColor to Dye
By: t7seven7t <t7seven7t@gmail.com>
2015-08-11 10:10:17 -08:00
Bukkit/Spigot
abbe3b7bc6 Fix an issue with the potion test
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-07-24 00:55:44 +01:00
Bukkit/Spigot
745401c988 SPIGOT-893: Fix bridge method registering generic listeners twice
By: Jonas Konrad <me@yawk.at>
2015-05-18 11:14:47 +02:00
Bukkit/Spigot
b4b7429f5b Rewrite BukkitMirrorTest
By: Wesley Wolfe <wesley.d.wolfe+git@gmail.com>
2014-06-03 15:06:47 -05:00
Bukkit/Spigot
a323c9fd8c Add unit tests for org.bukkit.util.StringUtil
By: Wesley Wolfe <weswolf@aol.com>
2014-01-04 12:43:49 -06:00
Bukkit/Spigot
bb50f1a774 Pulling all pending Bukkit-JavaDoc changes
A special thanks goes to @aerouk for almost all of the changes found here.

By: Wesley Wolfe <weswolf@aol.com>
2013-12-15 01:07:43 -05:00
Bukkit/Spigot
800679913f Add Location.setDirection(Vector). Adds BUKKIT-4862
This commit adds an additional method to Location to set the direction of
facing. Included are a set of unit tests that ensure the consistency of
getDirection and setDirection using a set of cardinal directions and
arbituary data points.

Javadocs were also added to pitch and yaw methods that explain the unit
and points of origin.

By: Wesley Wolfe <weswolf@aol.com>
2013-12-11 03:16:14 -06:00
Bukkit/Spigot
aa66c8025a Update Update Bukkit to 1.7.2
By: mbax <matt@phozop.net>
2013-11-13 17:53:49 -07:00
Bukkit/Spigot
d8cfc3fa42 [BREAKING] Use event class instead of event for timings. Fixes BUKKIT-4664
TimedRegisteredListener uses a reference to the first event fired. This
causes a memory leak in the server for any references that event has. This
changes TimedRegisteredListener to only store a reference to the class of
the event.

This change is intentionally a breaking change, as it is an obscure part
of the API. A non-breaking change would require the leak to be maintained
or an immediate update for any plugins using the method, as it would be an
indirect break.

A unit test is also included to check behavior of shared superclass
functionality.

By: Score_Under <seejay.11@gmail.com>
2012-07-05 23:51:12 +01:00
Bukkit/Spigot
9bc7b6277e Add ConfigurationSerializable-Serializable compatibility. Adds BUKKIT-4662
This commit adds a comaptibility layer for use between
ConfigurationSerializable and Java Serializable, such that when using the
Bukkit object streams, any ConfigurationSerializable acts as if it
implements Serializable for purposes of that wrapped stream.

Included are a set of unit tests for the stream with a check for backward
compatibility across versions.

By: Wesley Wolfe <weswolf@aol.com>
2013-04-25 06:06:12 -05:00
Bukkit/Spigot
1ed361e0cc Improve speed and memory use of FixedMetadataValue. Fixes BUKKIT-1460
FixedMetadataValue currently just extends LazyMetadataValue with a value
that never changes. While this works it is a lot of unneeded overhead
that causes FixedMetadataValue to be a lot slower and use a lot more
memory than one would expect. To correct this we store the value directly
in FixedMetadataValue and override the the appropriate methods to use it.

Ideally we would modify FixedMetadataValue to no longer extend
LazyMetadataValue as this would give a very large memory savings. However,
this is not currently done for backwards compatibility reasons.

By: crast <contact@jamescrasta.com>
2013-02-16 17:34:52 -07:00
Bukkit/Spigot
79f657b1a7 Refactor common metadata code into base class. Fixes BUKKIT-3624
Implementing the MetadataValue interface is significant work due to
having to provide a large amount of conversion stub methods. This commit
adds a new optional abstract base class to aid in implementation.

By: crast <contact@jamescrasta.com>
2013-02-16 14:33:24 -07:00
Bukkit/Spigot
fce9b199e3 Test PluginManager.removePermission
Static methods are death to testability.  However, irrelevant static
methods can be negotiated with until a later time in which they can be
removed.  When instantiating a new Permission object, static calls are
made to the Bukkit class during a recalculatePermissibles logic path.
This recalculatePermissibles call should probably be moved
appropriately, but until the time such testing can be accomplished
itself, these tests work around that situation by simply verifying the
static Bukkit server references are satisfied since what is called as
a result is irrelevant currently.

This commit also updates a few other tests for PluginManagerTest to
work towards the standard of using the Hamcrest unit testing library.

By: EdGruberman <ed@rjump.com>
2013-03-11 01:39:14 -07:00
Bukkit/Spigot
08fa8ed053 Added negative id check to Material.getMaterial(int). Fixes BUKKIT-3414
Negative id values would try to access the array out of bounds and throw an java.lang.ArrayIndexOutOfBoundsException.

By: MikeMatrix <m.braun92@gmail.com>
2013-01-11 02:07:38 +01:00
Bukkit/Spigot
d40a2e4fc1 Clarify dye and wool color datas in DyeColor. Addresses BUKKIT-2786
DyeColor used the wool data for getData(), which is very misleading based
on class name. The old method has been deprecated and replaced with
getWoolData() and getDyeData() for the appropriate types of data values.

The MaterialData classes Dye and Wool were updated appropriately,
especially Dye innapropriately using a DyeColor data value compensation.

Unit tests were added for the new methods, as well as the getColor on Dye
and Wool.

By: Wesley Wolfe <weswolf@aol.com>
2013-01-05 16:22:34 -06:00