Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Added WorldProviderTheEnd for diff visibility.
Dieser Commit ist enthalten in:
Ursprung
d1dd96f560
Commit
ec2713b256
42
src/main/java/net/minecraft/server/WorldProviderTheEnd.java
Normale Datei
42
src/main/java/net/minecraft/server/WorldProviderTheEnd.java
Normale Datei
@ -0,0 +1,42 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
public class WorldProviderTheEnd extends WorldProvider {
|
||||
|
||||
public WorldProviderTheEnd() {}
|
||||
|
||||
public void a() {
|
||||
this.c = new WorldChunkManagerHell(BiomeBase.SKY, 0.5F, 0.0F);
|
||||
this.dimension = 1;
|
||||
this.e = true;
|
||||
}
|
||||
|
||||
public IChunkProvider getChunkProvider() {
|
||||
return new ChunkProviderTheEnd(this.a, this.a.getSeed());
|
||||
}
|
||||
|
||||
public float a(long i, float f) {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
public boolean c() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean d() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean canSpawn(int i, int j) {
|
||||
int k = this.a.b(i, j);
|
||||
|
||||
return k == 0 ? false : Block.byId[k].material.isSolid();
|
||||
}
|
||||
|
||||
public ChunkCoordinates e() {
|
||||
return new ChunkCoordinates(100, 50, 0);
|
||||
}
|
||||
|
||||
public int getSeaLevel() {
|
||||
return 50;
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren