MCCommandSource

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.

Diese Klasse importieren

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

Methoden

getName

Return type: String

myMCCommandSource.getName();

getPlayer

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

myMCCommandSource.getPlayer();

getPlayerName

Rückgabetyp: Sammlung<String>

myMCCommandSource.getPlayerNames();

GetTargetedEntity

Rückgabetyp: Sammlung<String>

myMCCommandSource.getZielEntity();

getTeamnamen

Rückgabetyp: Sammlung<String>

myMCCommandSource.getTeamNames();

hasPermissionLevel

Return type: boolean

myMCCommandSource.hasPermissionLevel(p_197034_1_ als int);
ParameterTypeBeschreibung
p_197034_1_intNo description provided

isPlayer

Return type: boolean

myMCCommandSource.isPlayer();

sendErrorMessage

myMCCommandSource.sendErrorMessage(Nachricht als String);
ParameterTypeBeschreibung
messageStringNo description provided

sendFeedback

myMCCommandSource.sendFeedback(Feedback als Zeichenkette, erlaubt Logging als boolean);
ParameterTypeBeschreibung
rezensionStringNo description provided
allowLoggingbooleanNo description provided

ohne Feedbackdeaktiviert

Rückgabetyp: craftweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withFeedbackDeabled();

withMinPermissionLevel

Rückgabetyp: craftweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withMinPermissionLevel(p_197026_1_ als int);
ParameterTypeBeschreibung
p_197026_1_intNo description provided

withPermissionLevel

Rückgabetyp: craftweaker.api.commands.custom.MCCommandSource

myMCCommandSource.withPermissionLevel(p_197033_1_ als int);
ParameterTypeBeschreibung
p_197033_1_intNo description provided