Class DeathChestLocationFinder
- java.lang.Object
-
- com.therandomlabs.vanilladeathchest.deathchest.DeathChestLocationFinder
-
public final class DeathChestLocationFinder extends Object
Finds suitable locations for the placement of death chests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeathChestLocationFinder.LocationA death chest location.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable DeathChestLocationFinder.Locationfind(DeathChest deathChest, boolean doubleChest)Finds the most suitable location to place a queued death chest.
-
-
-
Method Detail
-
find
public static @Nullable DeathChestLocationFinder.Location find(DeathChest deathChest, boolean doubleChest)
Finds the most suitable location to place a queued death chest.- Parameters:
deathChest- a queuedDeathChest.doubleChest- whether a double chest is preferred.- Returns:
- a
DeathChestLocationFinder.Locationthat describes the most suitable location to place the specified death chest.
-
-