mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Update for 1.0.0
This commit is contained in:
1 parent
589f66bd1b
commit
345ea36c7b
153 files changed
+6128
-4617
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import org.bukkit.BlockChangeDelegate; // CraftBukkit
|
||||
|
||||
public abstract class WorldGenerator {
|
||||
|
||||
private final boolean a;
|
||||
|
||||
public WorldGenerator() {
|
||||
this.a = false;
|
||||
}
|
||||
|
||||
public WorldGenerator(boolean flag) {
|
||||
this.a = flag;
|
||||
}
|
||||
|
||||
public abstract boolean a(World world, Random random, int i, int j, int k);
|
||||
|
||||
public void a(double d0, double d1, double d2) {}
|
||||
|
||||
// CraftBukkit -- change signature
|
||||
protected void a(BlockChangeDelegate world, int i, int j, int k, int l, int i1) {
|
||||
if (this.a) {
|
||||
((World) world).setTypeIdAndData(i, j, k, l, i1); // CraftBukkit -- force-cast to world to get it working
|
||||
} else {
|
||||
world.setRawTypeIdAndData(i, j, k, l, i1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user