Skip to content

ITileFilter

Andrew Reade edited this page Jun 10, 2026 · 1 revision

ITileFilter

public interface ITileFilter {
	// Given a Tile, does it match the filter?
	public bool Matches(Tile tile);
}

Vanilla Terraria's one shovel digs a 3x3 of "Soft Tiles." In this case, "Soft Tiles" refers to an list of Type IDs that refer to the tiles that we care about (e.g. dirt, sand, snow). This Tile Filter interface is designed to be as flexible as possible. Anything within the Tile data object is on the table for use. If you want to use filtering to create specific shapes, build a different kind of Point Enumerator.

Clone this wiki locally