2025-11-24 22:52:51 +03:00

32 lines
630 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.world.level.entity;
import java.util.List;
import java.util.stream.Stream;
import net.minecraft.world.level.ChunkPos;
public class ChunkEntities<T> {
private final ChunkPos pos;
private final List<T> entities;
public ChunkEntities(ChunkPos pos, List<T> entities) {
this.pos = pos;
this.entities = entities;
}
public ChunkPos getPos() {
return this.pos;
}
public Stream<T> getEntities() {
return this.entities.stream();
}
public boolean isEmpty() {
return this.entities.isEmpty();
}
}