本文整理汇总了Java中forestry.api.apiculture.IBeeListener类的典型用法代码示例。如果您正苦于以下问题:Java IBeeListener类的具体用法?Java IBeeListener怎么用?Java IBeeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IBeeListener类属于forestry.api.apiculture包,在下文中一共展示了IBeeListener类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onQueenChange
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void onQueenChange(ItemStack queenStack) {
if (!Proxies.common.isSimulating(worldObj))
return;
Proxies.net.sendNetworkPacket(new PacketInventoryStack(PacketIds.IINVENTORY_STACK, xCoord, yCoord, zCoord, SLOT_QUEEN, queenStack), xCoord, yCoord,
zCoord);
for (IBeeListener eventHandler : eventHandlers) {
eventHandler.onQueenChange(queenStack);
}
}
示例2: onQueenDeath
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void onQueenDeath(IBee queen) {
for (IBeeListener eventHandler : eventHandlers) {
eventHandler.onQueenDeath(queen);
}
}
示例3: getBeeListeners
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public Iterable<IBeeListener> getBeeListeners() {
return Collections.singleton(beeListener);
}
示例4: getBeeListeners
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public Iterable<IBeeListener> getBeeListeners() {
return beeListeners;
}
示例5: registerBeeListener
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void registerBeeListener(IBeeListener modifier) {
eventHandlers.add(modifier);
}
示例6: removeBeeListener
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void removeBeeListener(IBeeListener modifier) {
eventHandlers.remove(modifier);
}
示例7: wearOutEquipment
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void wearOutEquipment(int amount) {
for (IBeeListener eventHandler : eventHandlers) {
eventHandler.wearOutEquipment(amount);
}
}
示例8: onPostQueenDeath
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override
public void onPostQueenDeath(IBee queen) {
for (IBeeListener eventHandler : eventHandlers) {
eventHandler.onPostQueenDeath(queen);
}
}
示例9: getBeeListener
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
IBeeListener getBeeListener();
示例10: registerBeeListener
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override public void registerBeeListener(IBeeListener event) {}
示例11: removeBeeListener
import forestry.api.apiculture.IBeeListener; //导入依赖的package包/类
@Override public void removeBeeListener(IBeeListener event) {}