Źródło polecenia MCCommand

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.commands.custom.MCCommandSource

Methods

getName

Return type: String

myMCCommandSource.getName();

getPlayer

Return type: crafttweaker.api.entity.player.MCPlayerEntity

myMCCommandSource.getPlayer();

Nazwy getPlayerName

Typ zwrotu: Kolekcja<String>

myMCCommandSource.getPlayerNames();

getTargetedEntity

Typ zwrotu: Kolekcja<String>

myMCCommandSource.getTargetedEntity();

Nazwy getTeames

Typ zwrotu: Kolekcja<String>

myMCCommandSource.getTeamNames();

hasPermissionLevel

Return type: boolean

myMCCommandSource.hasPermissionLevel(p_197034_1_ jako int);
ParameterTypeDescription
p_197034_1intNo description provided

isPlayer

Return type: boolean

myMCCommandSource.isPlayer();

Wyślij Wiadomość Błędną

myMCCommandSource.sendErrorMessage(wiadomość jako String);
ParameterTypeDescription
messageStringNo description provided

sendFeedback

myMCCommandSource.sendFeedback(feedback as String, allow Logging as boolean);
ParameterTypeDescription
opiniaStringNo description provided
allowLoggingbooleanNo description provided

opinia wyłączona

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withFeedbackDisabled();

na poziomie MinPermissionLevel

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withMinPermissionLevel(p_197026_1_ jako int);
ParameterTypeDescription
p_197026_1_intNo description provided

Poziom withPermissionLevel

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withPermissionLevel(p_197033_1_ jako int);
ParameterTypeDescription
p_197033_1_intNo description provided