<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Image.html"title="class or interface in java.awt"class="external-link">Image</a> image)</code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapFont.html"title="class in org.bukkit.map">MapFont</a> font,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> text)</code></div>
<divclass="deprecation-comment">Magic value, use <ahref="#getBasePixelColor(int,int)"><code>getBasePixelColor(int, int)</code></a></div>
</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a></code></div>
<divclass="block">Get a pixel from the layers below this canvas.</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapCursorCollection.html"title="class in org.bukkit.map">MapCursorCollection</a></code></div>
<divclass="block">Get the cursor collection associated with this canvas.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapView.html"title="interface in org.bukkit.map">MapView</a></code></div>
<divclass="deprecation-comment">Magic value, use <ahref="#getPixelColor(int,int)"><code>getPixelColor(int, int)</code></a></div>
</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#setCursors(org.bukkit.map.MapCursorCollection)"class="member-name-link">setCursors</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapCursorCollection.html"title="class in org.bukkit.map">MapCursorCollection</a> cursors)</code></div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a> color)</code></div>
<divclass="block">Draw a pixel to the canvas.</div>
</div>
</div>
</div>
</div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getMapView()">
<h3>getMapView</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapView.html"title="interface in org.bukkit.map">MapView</a></span> <spanclass="element-name">getMapView</span>()</div>
<divclass="block">Get the map this canvas is attached to.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The MapView this canvas is attached to.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getCursors()">
<h3>getCursors</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapCursorCollection.html"title="class in org.bukkit.map">MapCursorCollection</a></span> <spanclass="element-name">getCursors</span>()</div>
<divclass="block">Get the cursor collection associated with this canvas.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>The MapCursorCollection associated with this canvas.</dd>
<divclass="member-signature"><spanclass="return-type">void</span> <spanclass="element-name">setCursors</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapCursorCollection.html"title="class in org.bukkit.map">MapCursorCollection</a> cursors)</span></div>
<divclass="block">Set the cursor collection associated with this canvas. This does not
usually need to be called since a MapCursorCollection is already
provided.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>cursors</code> - The MapCursorCollection to associate with this canvas.</dd>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a> color)</span></div>
<divclass="block">Draw a pixel to the canvas.
<p>
The provided color might be converted to another color,
which is in the map color range. This means, that
<ahref="#getPixelColor(int,int)"><code>getPixelColor(int, int)</code></a> might return another
color than set.
If null is used as color, then the color returned by
<ahref="#getBasePixelColor(int,int)"><code>getBasePixelColor(int, int)</code></a> is shown on the map.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate, from 0 to 127.</dd>
<dd><code>y</code> - The y coordinate, from 0 to 127.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a></span> <spanclass="element-name">getPixelColor</span><wbr><spanclass="parameters">(int x,
int y)</span></div>
<divclass="block">Get a pixel from the canvas.
If no color is set at the given position for this canvas, then null is
returned and the color returned by <ahref="#getBasePixelColor(int,int)"><code>getBasePixelColor(int, int)</code></a>
is shown on the map.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate, from 0 to 127.</dd>
<dd><code>y</code> - The y coordinate, from 0 to 127.</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Color.html"title="class or interface in java.awt"class="external-link">Color</a></span> <spanclass="element-name">getBasePixelColor</span><wbr><spanclass="parameters">(int x,
int y)</span></div>
<divclass="block">Get a pixel from the layers below this canvas.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate, from 0 to 127.</dd>
<dd><code>y</code> - The y coordinate, from 0 to 127.</dd>
<divclass="deprecation-comment">Magic value, use <ahref="#setPixelColor(int,int,java.awt.Color)"><code>setPixelColor(int, int, Color)</code></a></div>
</div>
<divclass="block">Draw a pixel to the canvas.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate, from 0 to 127.</dd>
<dd><code>y</code> - The y coordinate, from 0 to 127.</dd>
<dd><code>color</code> - The color. See <ahref="MapPalette.html"title="class in org.bukkit.map"><code>MapPalette</code></a>.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getPixel(int,int)">
<h3>getPixel</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<divclass="deprecation-comment">Magic value, use <ahref="#getPixelColor(int,int)"><code>getPixelColor(int, int)</code></a></div>
</div>
<divclass="block">Get a pixel from the canvas.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate, from 0 to 127.</dd>
<dd><code>y</code> - The y coordinate, from 0 to 127.</dd>
<dt>Returns:</dt>
<dd>The color. See <ahref="MapPalette.html"title="class in org.bukkit.map"><code>MapPalette</code></a>.</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getBasePixel(int,int)">
<h3>getBasePixel</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/Image.html"title="class or interface in java.awt"class="external-link">Image</a> image)</span></div>
<divclass="block">Draw an image to the map. The image will be clipped if necessary.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The x coordinate of the image.</dd>
<dd><code>y</code> - The y coordinate of the image.</dd>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="MapFont.html"title="class in org.bukkit.map">MapFont</a> font,
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> text)</span></div>
<divclass="block">Render text to the map using fancy formatting. Newline (\n) characters
will move down one line and return to the original column, and the text
color can be changed using sequences such as "§12;", replacing 12 with
the palette index of the color (see <ahref="MapPalette.html"title="class in org.bukkit.map"><code>MapPalette</code></a>).</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>x</code> - The column to start rendering on.</dd>
<dd><code>y</code> - The row to start rendering on.</dd>
<dd><code>font</code> - The font to use.</dd>
<dd><code>text</code> - The formatted text to render.</dd>