Package net.minecraft.world.level.entity
Class LevelEntityGetterAdapter<T extends EntityAccess>
java.lang.Object
net.minecraft.world.level.entity.LevelEntityGetterAdapter<T>
- All Implemented Interfaces:
LevelEntityGetter<T>
public class LevelEntityGetterAdapter<T extends EntityAccess>
extends Object
implements LevelEntityGetter<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntitySectionStorage
<T> private final EntityLookup
<T> -
Constructor Summary
ConstructorsConstructorDescriptionLevelEntityGetterAdapter
(EntityLookup<T> visibleEntities, EntitySectionStorage<T> sectionStorage) -
Method Summary
Modifier and TypeMethodDescriptionget
(int id) <U extends T>
voidget
(EntityTypeTest<T, U> test, AbortableIterationConsumer<U> consumer) <U extends T>
voidget
(EntityTypeTest<T, U> test, AABB bounds, AbortableIterationConsumer<U> consumer) void
getAll()
-
Field Details
-
visibleEntities
-
sectionStorage
-
-
Constructor Details
-
LevelEntityGetterAdapter
public LevelEntityGetterAdapter(EntityLookup<T> visibleEntities, EntitySectionStorage<T> sectionStorage)
-
-
Method Details
-
get
- Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-
get
- Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-
getAll
- Specified by:
getAll
in interfaceLevelEntityGetter<T extends EntityAccess>
-
get
- Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-
get
- Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-
get
public <U extends T> void get(EntityTypeTest<T, U> test, AABB bounds, AbortableIterationConsumer<U> consumer) - Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-