本文整理汇总了Java中org.spongepowered.api.service.context.ContextCalculator类的典型用法代码示例。如果您正苦于以下问题:Java ContextCalculator类的具体用法?Java ContextCalculator怎么用?Java ContextCalculator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContextCalculator类属于org.spongepowered.api.service.context包,在下文中一共展示了ContextCalculator类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getActiveContexts
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
public Set<Context> getActiveContexts(BaseAccount baseAccount)
{
Set<Context> contexts = new HashSet<>();
for (ContextCalculator<Account> calculator : contextCalculators)
{
calculator.accumulateContexts(baseAccount, contexts);
}
return contexts;
}
示例2: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(@Nonnull ContextCalculator<Subject> contextCalculator) {
this.handle.registerContextCalculator(contextCalculator);
}
示例3: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(final ContextCalculator<Subject> calculator) {}
示例4: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(ContextCalculator<Account> calculator) {}
示例5: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(ContextCalculator<Subject> calculator) {
}
示例6: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(ContextCalculator<Account> arg0) {
return;
}
示例7: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(ContextCalculator<Account> contextCalculator)
{
this.contextCalculators.add(contextCalculator);
}
示例8: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
@Override
public void registerContextCalculator(ContextCalculator<Subject> calculator)
{
calculators.add(calculator);
}
示例9: getContextCalculators
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
public List<ContextCalculator<Subject>> getContextCalculators()
{
return this.calculators;
}
示例10: registerContextCalculator
import org.spongepowered.api.service.context.ContextCalculator; //导入依赖的package包/类
void registerContextCalculator(ContextCalculator<Subject> calculator);