net.minecraft.world.World.addEventListener()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中net.minecraft.world.World.addEventListener()方法的一些代码示例,展示了World.addEventListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.addEventListener()方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:addEventListener

World.addEventListener介绍

暂无

代码示例

代码示例来源:origin: SleepyTrousers/EnderIO

  1. @Override
  2. public void addEventListener(@Nonnull IWorldEventListener listener) {
  3. wrapped.addEventListener(listener);
  4. }

代码示例来源:origin: Lunatrius/Schematica

  1. public static void addWorldAccess(final World world, final IWorldEventListener schematic) {
  2. if (world != null && schematic != null) {
  3. Reference.logger.debug("Adding world access to {}", world);
  4. world.addEventListener(schematic);
  5. }
  6. }

代码示例来源:origin: amadornes/MCMultiPart

  1. @Override
  2. public void addEventListener(IWorldEventListener listener) {
  3. getActualWorld().addEventListener(listener);
  4. }

代码示例来源:origin: RS485/LogisticsPipes

  1. public static LPWorldInfo getWorldInfo(World world) {
  2. LPWorldInfo info = LPTickHandler.worldInfo.get(world);
  3. if (info == null) {
  4. info = new LPWorldInfo();
  5. LPTickHandler.worldInfo.put(world, info);
  6. world.addEventListener(new LPWorldAccess(world, info));
  7. }
  8. return info;
  9. }

代码示例来源:origin: P3pp3rF1y/AncientWarfare2

  1. @SubscribeEvent
  2. public void onWorldLoad(WorldEvent.Load event) {
  3. event.getWorld().addEventListener(OneShotEntityDespawnListener.INSTANCE);
  4. }

代码示例来源:origin: AntiqueAtlasTeam/AntiqueAtlas

  1. @SubscribeEvent
  2. public void onWorldLoad(WorldEvent.Load event) {
  3. if (!event.getWorld().isRemote) {
  4. event.getWorld().addEventListener(this);
  5. }
  6. }

代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped

  1. @SubscribeEvent(priority = EventPriority.HIGHEST)
  2. public void onWorldLoad(WorldEvent.Load event) {
  3. event.getWorld().addEventListener(new ValkyrienWarfareWorldEventListener(event.getWorld()));
  4. }

代码示例来源:origin: ldtteam/minecolonies

  1. world.addEventListener(new ColonyManagerWorldAccess());

代码示例来源:origin: TeamLapen/Vampirism

  1. @SubscribeEvent
  2. public void onWorldLoad(WorldEvent.Load event) {
  3. event.getWorld().addEventListener(new ModWorldEventListener(event.getWorld().provider.getDimension()));
  4. }

相关文章

World类方法