public interface ICheckSpawns
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.>
Created by Hiroku
Modifier and Type | Method and Description |
---|---|
void |
checkSpawns(AbstractSpawner spawner,
net.minecraft.command.ICommandSender sender,
java.util.List<java.lang.String> arguments)
Executes /checkspawns directly from the command.
|
default java.util.List<net.minecraft.util.text.TextComponentBase> |
generateMessages(java.util.Map<java.lang.String,java.lang.Double> percentages,
java.util.List<java.lang.String> arguments)
Default method that takes a map of percentages and composes the series of messages displaying it to the player.
|
static ICheckSpawns |
getDefault() |
default java.lang.String |
getPermissionNode() |
default net.minecraft.util.text.TextComponentTranslation |
translate(net.minecraft.util.text.TextFormatting colour,
java.lang.String text,
java.lang.Object... args)
Shortcut method for translating text and putting it in a coloured TextComponentTranslation.
|
static ICheckSpawns getDefault()
default java.lang.String getPermissionNode()
void checkSpawns(AbstractSpawner spawner, net.minecraft.command.ICommandSender sender, java.util.List<java.lang.String> arguments)
default java.util.List<net.minecraft.util.text.TextComponentBase> generateMessages(java.util.Map<java.lang.String,java.lang.Double> percentages, java.util.List<java.lang.String> arguments)
default net.minecraft.util.text.TextComponentTranslation translate(net.minecraft.util.text.TextFormatting colour, java.lang.String text, java.lang.Object... args)