Skip to content

Commit acdbcc1

Browse files
committed
Deprecate tile-filters
1 parent 4c6ed2f commit acdbcc1

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

src/main/java/de/bluecolored/bluemap/api/BlueMapMap.java

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,6 @@ public interface BlueMapMap {
8686
*/
8787
Vector2i getTileOffset();
8888

89-
/**
90-
* <p>Sets a filter that determines if a specific (hires) tile of this map should be updated or not.
91-
* If this filter returns false for a tile, the "render"-process of this tile will be cancelled and the tile will be left untouched.</p>
92-
* <p><b>Warning:</b> Using this method will harm the integrity of the map! Since BlueMap will still assume that the tile got updated properly.</p>
93-
* <p>Any previously set filters will get overwritten with the new one. You can get the current filter using {@link #getTileFilter()} and combine them if you wish.</p>
94-
* @param filter The filter that will be used from now on.
95-
*/
96-
@ApiStatus.Experimental
97-
void setTileFilter(Predicate<Vector2i> filter);
98-
9989
/**
10090
* Freezes or unfreezes the map in the same way the `/bluemap freeze` command does.
10191
* BlueMap will no longer attempt to update this map if it is frozen.
@@ -109,12 +99,6 @@ public interface BlueMapMap {
10999
*/
110100
boolean isFrozen();
111101

112-
/**
113-
* Returns the currently set TileFilter. The default TileFilter is equivalent to <code>t -&gt; true</code>.
114-
*/
115-
@ApiStatus.Experimental
116-
Predicate<Vector2i> getTileFilter();
117-
118102
/**
119103
* Converts a block-position to a map-tile-coordinate for this map
120104
*
@@ -152,4 +136,11 @@ default Vector2i posToTile(Vector3d pos){
152136
return posToTile(pos.getX(), pos.getZ());
153137
}
154138

139+
140+
@Deprecated(forRemoval = true)
141+
void setTileFilter(Predicate<Vector2i> filter);
142+
143+
@Deprecated(forRemoval = true)
144+
Predicate<Vector2i> getTileFilter();
145+
155146
}

0 commit comments

Comments
 (0)