Interface CheckSpawns
- All Known Implementing Classes:
CurryCheckSpawns
,FishingCheckSpawns
,GenericTriggerCheckSpawns
,LegendaryCheckSpawns
,PlayerTrackingCheckSpawns
,RayTraceCheckSpawns
public interface CheckSpawns
Interface for performing /checkspawns calculations.
1. Compose a single or a collection of 2. Find all the possible 3. Calculate the percentages for each distinct spawn by using the algorithm's 4. Generate the messages using
Usual procedure for /checkspawns is as follows:
SpawnLocation
s.</>
SpawnInfo
s for all the SpawnLocation
s. </>
getPercentages
</>.
generateMessages(Map, List)
and send them to the sender.</>-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSpawns
(AbstractSpawner spawner, net.minecraft.commands.CommandSourceStack sender, List<String> arguments) Executes /checkspawns directly from the command.default List<net.minecraft.network.chat.MutableComponent>
Default method that takes a map of percentages and composes the series of messages displaying it to the player.static CheckSpawns
default String
-
Method Details
-
getDefault
-
getPermissionNode
-
checkSpawns
void checkSpawns(AbstractSpawner spawner, net.minecraft.commands.CommandSourceStack sender, List<String> arguments) Executes /checkspawns directly from the command. -
generateMessages
default List<net.minecraft.network.chat.MutableComponent> generateMessages(Map<String, Double> percentages, List<String> arguments) Default method that takes a map of percentages and composes the series of messages displaying it to the player.
-