本文整理汇总了Java中ch.njol.skript.registrations.Classes.toString方法的典型用法代码示例。如果您正苦于以下问题:Java Classes.toString方法的具体用法?Java Classes.toString怎么用?Java Classes.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.njol.skript.registrations.Classes
的用法示例。
在下文中一共展示了Classes.toString方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toString_i
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
public String toString_i() {
return "the " + slot.name().toLowerCase() + " of " + Classes.toString(e);
}
示例2: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
if (e != null)
return Classes.toString(get(e));
return "{" + (local ? "_" : "") + StringUtils.substring(name.toString(e, debug), 1, -1) + "}" + (debug ? "(as " + superType.getName() + ")" : "");
}
示例3: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
return Classes.toString(data, getAnd());
}
示例4: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
if (debug)
return "[" + Classes.toString(data, getAnd(), StringMode.DEBUG) + "]";
return Classes.toString(data, getAnd());
}
示例5: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
return "at " + Time.toString(tick) + " in worlds " + Classes.toString(worlds, true);
}
示例6: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
return "break/place/burn/fade/form of " + Classes.toString(types);
}
示例7: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
return "death/spawn" + (types != null ? " of " + Classes.toString(types, false) : "");
}
示例8: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString(final @Nullable Event e, final boolean debug) {
return "walk on " + Classes.toString(types, false);
// return "walk on " + (types != null ? Skript.toString(types, false) : "<block:" + world.getName() + ":" + x + "," + y + "," + z + ">");
}
示例9: toString_i
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString_i() {
if (invi.getHolder() != null)
return "slot " + index + " of inventory of " + Classes.toString(invi.getHolder());
return "slot " + index + " of " + Classes.toString(invi);
}
示例10: toString_i
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public String toString_i() {
return "the " + slot.name().toLowerCase(Locale.ENGLISH) + " of " + Classes.toString(e.getHolder()); // TODO localise?
}
示例11: toString
import ch.njol.skript.registrations.Classes; //导入方法依赖的package包/类
@Override
public final String toString() {
return Classes.toString(getItem());
}