本文整理了Java中net.minecraft.world.World.addEventListener()
方法的一些代码示例,展示了World.addEventListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.addEventListener()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:addEventListener
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void addEventListener(@Nonnull IWorldEventListener listener) {
wrapped.addEventListener(listener);
}
代码示例来源:origin: Lunatrius/Schematica
public static void addWorldAccess(final World world, final IWorldEventListener schematic) {
if (world != null && schematic != null) {
Reference.logger.debug("Adding world access to {}", world);
world.addEventListener(schematic);
}
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public void addEventListener(IWorldEventListener listener) {
getActualWorld().addEventListener(listener);
}
代码示例来源:origin: RS485/LogisticsPipes
public static LPWorldInfo getWorldInfo(World world) {
LPWorldInfo info = LPTickHandler.worldInfo.get(world);
if (info == null) {
info = new LPWorldInfo();
LPTickHandler.worldInfo.put(world, info);
world.addEventListener(new LPWorldAccess(world, info));
}
return info;
}
代码示例来源:origin: P3pp3rF1y/AncientWarfare2
@SubscribeEvent
public void onWorldLoad(WorldEvent.Load event) {
event.getWorld().addEventListener(OneShotEntityDespawnListener.INSTANCE);
}
代码示例来源:origin: AntiqueAtlasTeam/AntiqueAtlas
@SubscribeEvent
public void onWorldLoad(WorldEvent.Load event) {
if (!event.getWorld().isRemote) {
event.getWorld().addEventListener(this);
}
}
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onWorldLoad(WorldEvent.Load event) {
event.getWorld().addEventListener(new ValkyrienWarfareWorldEventListener(event.getWorld()));
}
代码示例来源:origin: ldtteam/minecolonies
world.addEventListener(new ColonyManagerWorldAccess());
代码示例来源:origin: TeamLapen/Vampirism
@SubscribeEvent
public void onWorldLoad(WorldEvent.Load event) {
event.getWorld().addEventListener(new ModWorldEventListener(event.getWorld().provider.getDimension()));
}
内容来源于网络,如有侵权,请联系作者删除!