Class FakeLevelEntityGetterAdapter

java.lang.Object
net.minecraft.world.level.entity.LevelEntityGetterAdapter<net.minecraft.world.entity.Entity>
com.ldtteam.structurize.client.fakelevel.FakeLevelEntityGetterAdapter
All Implemented Interfaces:
net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>

public class FakeLevelEntityGetterAdapter extends net.minecraft.world.level.entity.LevelEntityGetterAdapter<net.minecraft.world.entity.Entity>
Vanilla equivalent without section storage. Porting: should override any usage of super.sectionStorage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final net.minecraft.world.level.entity.EntityTypeTest<net.minecraft.world.entity.Entity,net.minecraft.world.entity.Entity>
     
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    FakeLevelEntityGetterAdapter(net.minecraft.world.level.entity.EntityLookup<net.minecraft.world.entity.Entity> entityLookup)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <U extends net.minecraft.world.entity.Entity>
    void
    get(net.minecraft.world.level.entity.EntityTypeTest<net.minecraft.world.entity.Entity,U> predicate, net.minecraft.world.phys.AABB aabb, net.minecraft.util.AbortableIterationConsumer<U> sink)
     
    void
    get(net.minecraft.world.phys.AABB aabb, Consumer<net.minecraft.world.entity.Entity> sink)
     
    static <T extends net.minecraft.world.entity.Entity>
    FakeLevelEntityGetterAdapter
    ofEntities(Collection<T> entities)
     

    Methods inherited from class net.minecraft.world.level.entity.LevelEntityGetterAdapter

    get, get, get, getAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY

      public static final FakeLevelEntityGetterAdapter EMPTY
    • ALWAYS_PASS_TEST

      protected static final net.minecraft.world.level.entity.EntityTypeTest<net.minecraft.world.entity.Entity,net.minecraft.world.entity.Entity> ALWAYS_PASS_TEST
  • Constructor Details

    • FakeLevelEntityGetterAdapter

      protected FakeLevelEntityGetterAdapter(net.minecraft.world.level.entity.EntityLookup<net.minecraft.world.entity.Entity> entityLookup)
  • Method Details

    • ofEntities

      public static <T extends net.minecraft.world.entity.Entity> FakeLevelEntityGetterAdapter ofEntities(Collection<T> entities)
    • get

      public void get(net.minecraft.world.phys.AABB aabb, Consumer<net.minecraft.world.entity.Entity> sink)
      Specified by:
      get in interface net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
      Overrides:
      get in class net.minecraft.world.level.entity.LevelEntityGetterAdapter<net.minecraft.world.entity.Entity>
    • get

      public <U extends net.minecraft.world.entity.Entity> void get(net.minecraft.world.level.entity.EntityTypeTest<net.minecraft.world.entity.Entity,U> predicate, net.minecraft.world.phys.AABB aabb, net.minecraft.util.AbortableIterationConsumer<U> sink)
      Specified by:
      get in interface net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity>
      Overrides:
      get in class net.minecraft.world.level.entity.LevelEntityGetterAdapter<net.minecraft.world.entity.Entity>