本文整理汇总了Java中me.botsko.prism.actionlibs.RecordingQueue类的典型用法代码示例。如果您正苦于以下问题:Java RecordingQueue类的具体用法?Java RecordingQueue怎么用?Java RecordingQueue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RecordingQueue类属于me.botsko.prism.actionlibs包,在下文中一共展示了RecordingQueue类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerBlockChange
import me.botsko.prism.actionlibs.RecordingQueue; //导入依赖的package包/类
/**
* Registers a block change in Prism.
*
* @param player The player who changed the block.
* @param before The BlockState before the change.
* @param after The BlockState after the change.
* @param actionType The action.
*/
public void registerBlockChange(Player player, BlockState before, BlockState after, PrismActionType actionType)
{
if (!isEnabled()) return;
BlockChangeAction action = new BlockChangeAction();
action.setActionType(actionType.getAction().getName());
action.setPlayerName(player);
action.setBlock(after);
action.setBlockId(after.getTypeId());
action.setBlockSubId(after.getRawData());
action.setOldBlockId(before.getTypeId());
action.setOldBlockSubId(before.getRawData());
RecordingQueue.addToQueue(action);
}
示例2: getQueueSize
import me.botsko.prism.actionlibs.RecordingQueue; //导入依赖的package包/类
public int getQueueSize() { return RecordingQueue.getQueueSize(); }