-
-
Notifications
You must be signed in to change notification settings - Fork 3
Clientside Maps
Maximilian Dorn edited this page Aug 30, 2022
·
2 revisions
A ClientsideMap
is a fully clientside map. It does not affect any "real" serverside maps. You can draw whatever you want on a ClientsideMap
.
// Get a new version adapter
VersionAdapter va = new VersionAdapterFactory().makeAdapter();
// Create a new map and draw a red rectangle
ClientsideMap map = new ClientsideMap();
ClientsideMapGraphics graphics = new ClientsideMapGraphics();
graphics.fillComplete(ColorCache.rgbToMap(255, 255, 255));
graphics.fillRect(5, 5, 118, 118, ColorCache.rgbToMap(255, 0, 0), 1f);
// Draw the buffer onto the map and send the map to Notch
map.draw(graphics);
map.sendTo(va, Bukkit.getPlayer("Notch"));
- Getting started
- Core classes
- Other
- Examples
- Javadocs
- Concepts
- (Outdated)
"Dirty" maps - (Outdated)
The Advanced Content Change Algorithm
- (Outdated)
- Other
- (Outdated)
Memory usage
- (Outdated)