cn.nukkit.event.level.ChunkPrePopulateEvent Maven / Gradle / Ivy
package cn.nukkit.event.level;
import cn.nukkit.api.ImmutableCollection;
import cn.nukkit.event.HandlerList;
import cn.nukkit.level.format.FullChunk;
import cn.nukkit.level.generator.populator.type.Populator;
import org.jetbrains.annotations.NotNull;
import java.util.Collections;
import java.util.List;
public class ChunkPrePopulateEvent extends ChunkEvent {
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlers() {
return handlers;
}
@NotNull
@ImmutableCollection
private List terrainPopulators;
@NotNull
@ImmutableCollection
private List biomePopulators;
public ChunkPrePopulateEvent(FullChunk chunk, @NotNull List terrainPopulators, @NotNull List biomePopulators) {
super(chunk);
this.terrainPopulators = Collections.unmodifiableList(terrainPopulators);
this.biomePopulators = Collections.unmodifiableList(biomePopulators);
}
@NotNull
@ImmutableCollection
public List getTerrainPopulators() {
return terrainPopulators;
}
public void setTerrainPopulators(@NotNull List terrainPopulators) {
this.terrainPopulators = terrainPopulators;
}
@NotNull
@ImmutableCollection
public List getBiomePopulators() {
return biomePopulators;
}
public void setBiomePopulators(@NotNull List biomePopulators) {
this.biomePopulators = biomePopulators;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy