Commit Graph

39 Commits

Author SHA1 Message Date
Bukkit/Spigot
3a4c583278 SPIGOT-7138: Can't retrieve pixel color from map
By: DerFrZocker <derrieple@gmail.com>
2022-08-16 19:52:48 +10:00
Bukkit/Spigot
4c2dd40231 SPIGOT-7124: MapPalette.getColor(0) returns the wrong color
By: DerFrZocker <derrieple@gmail.com>
2022-08-01 22:08:48 +10:00
Bukkit/Spigot
2ca50720e4 #746: Add option to use cached map color palette
This reduces the conversion time drastically with the cost of slightly more memory usage.

By: DerFrZocker <derrieple@gmail.com>
2022-06-18 21:13:40 +10:00
Bukkit/Spigot
276f86cc29 SPIGOT-5984: Add non deprecated / magic value way to set pixel in MapCanvas
By: DerFrZocker <derrieple@gmail.com>
2022-06-09 21:27:21 +10:00
Bukkit/Spigot
926db7c30b SPIGOT-6825: MapFont#getWidth ignores §, but not the color-byte and semicolon following it
By: md_5 <git@md-5.net>
2021-12-01 14:58:04 +11:00
Bukkit/Spigot
16922e92de SPIGOT-6646: Issue with map palette ranges
By: md_5 <git@md-5.net>
2021-07-15 20:32:47 +10:00
Bukkit/Spigot
153752dfac Update to Minecraft 1.17
By: md_5 <git@md-5.net>
2021-06-11 15:00:00 +10:00
Bukkit/Spigot
e13ed11b85 SPIGOT-6213: MinecraftFont.getWidth(" ") returns 2 when it should be 3
By: md_5 <git@md-5.net>
2020-11-03 19:22:52 +11:00
Bukkit/Spigot
5037b91f7e SPIGOT-5841: New map colours broken
By: md_5 <git@md-5.net>
2020-06-27 09:04:58 +10:00
Bukkit/Spigot
eed3a67ee8 Update to Minecraft 1.16.1
By: md_5 <git@md-5.net>
2020-06-25 10:00:00 +10: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
d8417eaead SPIGOT-4958: API to set map trackingPosition
By: md_5 <git@md-5.net>
2019-05-20 19:29:45 +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
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
b5f51a06d1 SPIGOT-4496: Undeprecate MapView.getId and make int
By: md_5 <git@md-5.net>
2018-11-23 11:50:32 +11:00
Bukkit/Spigot
175280220b SPIGOT-4182: Implement cursor captions
By: md_5 <git@md-5.net>
2018-07-29 15:09:54 +10: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
67dcd3fc2d Add non-deprecated constructor for MapCursor
By: Isaac <minuskube@gmail.com>
2017-08-20 00:31:12 +02:00
Bukkit/Spigot
e3d4acc303 Assorted whitespace fixes
By: md_5 <git@md-5.net>
2017-08-06 09:08:05 +10:00
Bukkit/Spigot
e115450c3c Fix MapPalette.getColor(byte) to use correct ranges for 1.12 color array
By: Nathan Wolf <nathan@elmakers.com>
2017-06-22 13:13:46 -07:00
Bukkit/Spigot
75a18fd5ad Minecraft 1.12-pre2 API Changes
By: md_5 <git@md-5.net>
2017-05-14 12:00:00 +10:00
Bukkit/Spigot
86a1bf165c Add new map icons to MapCursor.Type
By: Pokechu22 <Pokechu022@gmail.com>
2017-01-20 23:08:49 -08: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
aaf720af60 SPIGOT-2646: MapFont.getWidth with coloured text
By: md_5 <git@md-5.net>
2016-09-01 09:27:37 +10:00
Bukkit/Spigot
3f9d43cd53 SPIGOT-652: Update the map colors to match Minecraft
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-03-07 12:57:14 +00:00
Bukkit/Spigot
b2d54f59bb Clean up the javadoc to pass java 8's doclint
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2014-11-30 21:09:01 +00:00
Bukkit/Spigot
ec20888a8a Account for spacing in MapFont#getWidth(). Fixes BUKKIT-4089
Prior to this commit MapFont#getWidth() did not account for the 1px
spacing inserted by CraftMapCanvas#drawText().

This commit adds the consideration of the 1px spacing per character
while taking care to not consider the last character as it will not
have a 1px space behind it. This commit also ensures the method will
not check a 0-length String.

By: eueln <euelnd@gmail.com>
2014-04-11 15:37:15 -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
6f78bf64a6 Cleanup of c00ac08514c93edc88e556d40ac75a54eb40e271
By: feildmaster <admin@feildmaster.com>
2013-12-09 16:25:03 -06:00
Bukkit/Spigot
7d8d6df39e [Bleeding] Update MapPalette with new colors. Fixes BUKKIT-5094
As of Minecraft 1.7, there are 143 available map colors, MapPalette
needs to be updated to reflect the new colors.

This commit fixes the issue by adding the new colors to the
color matching array, and appropriately adjusts the color matching
methods as well.

By: t00thpick1 <t00thpick1dirko@gmail.com>
2013-12-08 11:17:12 -05:00
Bukkit/Spigot
f9bec6eadd Deprecate magic values
By: Wesley Wolfe <weswolf@aol.com>
2013-08-19 13:32:18 -05:00
Bukkit/Spigot
2fa5a7033a [Bleeding] Fixed MapPalette.imageToBytes to properly handle transparency. Addresses BUKKIT-852
By: SpaceManiac <tad.hardesty@platymuus.com>
2012-02-25 22:44:09 -06:00
Bukkit/Spigot
4c80a49933 Generic cleaning
By: Erik Broes <erikbroes@grum.nl>
2012-01-15 14:37:30 +01:00
Bukkit/Spigot
aaab1cba23 Generic cleanup of warnings, whitespace and style.
By: Erik Broes <erikbroes@grum.nl>
2011-12-25 16:02:30 +01:00
Bukkit/Spigot
a8e72bdb91 Many javadoc fixes thanks to Celtic Minstrel
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-25 02:56:40 +01:00
Bukkit/Spigot
cd7da9630a Added API for manipulating map items. Thanks SpaceManiac, codename_B, sk89q and dested!
By: EvilSeph <evilseph@gmail.com>
2011-08-12 21:59:10 -04:00