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> pVisibleEntities, EntitySectionStorage<T> pSectionStorage) -
Method Summary
Modifier and TypeMethodDescriptionget
(int pId) <U extends T>
voidget
(EntityTypeTest<T, U> pTest, AbortableIterationConsumer<U> pConsumer) <U extends T>
voidget
(EntityTypeTest<T, U> pTest, AABB pBounds, AbortableIterationConsumer<U> pConsumer) void
getAll()
-
Field Details
-
visibleEntities
-
sectionStorage
-
-
Constructor Details
-
LevelEntityGetterAdapter
public LevelEntityGetterAdapter(EntityLookup<T> pVisibleEntities, EntitySectionStorage<T> pSectionStorage)
-
-
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> pTest, AABB pBounds, AbortableIterationConsumer<U> pConsumer) - Specified by:
get
in interfaceLevelEntityGetter<T extends EntityAccess>
-