本文整理匯總了Java中net.minecraft.command.CommandBase.func_71523_a方法的典型用法代碼示例。如果您正苦於以下問題:Java CommandBase.func_71523_a方法的具體用法?Java CommandBase.func_71523_a怎麽用?Java CommandBase.func_71523_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.command.CommandBase
的用法示例。
在下文中一共展示了CommandBase.func_71523_a方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: func_71558_b
import net.minecraft.command.CommandBase; //導入方法依賴的package包/類
public List func_71558_b(ICommandSender p_71558_1_, String p_71558_2_) {
String[] var3 = p_71558_2_.split(" ", -1);
String var4 = var3[0];
if(var3.length == 1) {
ArrayList var8 = new ArrayList();
Iterator var6 = this.field_71562_a.entrySet().iterator();
while(var6.hasNext()) {
Entry var7 = (Entry)var6.next();
if(CommandBase.func_71523_a(var4, (String)var7.getKey()) && ((ICommand)var7.getValue()).func_71519_b(p_71558_1_)) {
var8.add(var7.getKey());
}
}
return var8;
} else {
if(var3.length > 1) {
ICommand var5 = (ICommand)this.field_71562_a.get(var4);
if(var5 != null) {
return var5.func_71516_a(p_71558_1_, func_71559_a(var3));
}
}
return null;
}
}
示例2: func_71248_a
import net.minecraft.command.CommandBase; //導入方法依賴的package包/類
public List func_71248_a(ICommandSender p_71248_1_, String p_71248_2_) {
ArrayList var3 = new ArrayList();
if(p_71248_2_.startsWith("/")) {
p_71248_2_ = p_71248_2_.substring(1);
boolean var10 = !p_71248_2_.contains(" ");
List var11 = this.field_71321_q.func_71558_b(p_71248_1_, p_71248_2_);
if(var11 != null) {
Iterator var12 = var11.iterator();
while(var12.hasNext()) {
String var13 = (String)var12.next();
if(var10) {
var3.add("/" + var13);
} else {
var3.add(var13);
}
}
}
return var3;
} else {
String[] var4 = p_71248_2_.split(" ", -1);
String var5 = var4[var4.length - 1];
String[] var6 = this.field_71318_t.func_72369_d();
int var7 = var6.length;
for(int var8 = 0; var8 < var7; ++var8) {
String var9 = var6[var8];
if(CommandBase.func_71523_a(var5, var9)) {
var3.add(var9);
}
}
return var3;
}
}