Interface LevelExtension


public interface LevelExtension
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<net.minecraft.world.entity.Entity>
    Get an iterator over all entities in this level.
    static Iterable<net.minecraft.world.entity.Entity>
    getAllLoadedEntities(net.minecraft.world.level.Level level)
     
  • Method Details

    • flywheel$getAllLoadedEntities

      Iterable<net.minecraft.world.entity.Entity> flywheel$getAllLoadedEntities()
      Get an iterator over all entities in this level.

      Normally, this would be accomplished by ClientLevel.entitiesForRendering(), but the output of that method does not include entities that are rendered by Flywheel. This interface provides a workaround.

      Returns:
      An iterator over all entities in the level, including entities that are rendered by Flywheel.
    • getAllLoadedEntities

      static Iterable<net.minecraft.world.entity.Entity> getAllLoadedEntities(net.minecraft.world.level.Level level)