public class SpawningHeightmap
extends java.lang.Object
Constructor and Description |
---|
SpawningHeightmap() |
Modifier and Type | Method and Description |
---|---|
static void |
blockUpdate(net.minecraftforge.event.world.BlockEvent.NeighborNotifyEvent event) |
static boolean |
canSeeSky(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.World world)
Convenience method for checking if a given block can see the sky
|
static java.util.concurrent.CompletableFuture<java.lang.Integer> |
getHeight(net.minecraft.util.math.BlockPos pos,
net.minecraft.world.World world)
Finds the height of the surface for the given position.
|
static void |
loadSpawningHeightmap(net.minecraftforge.event.world.ChunkDataEvent.Load event) |
static void |
onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload event) |
static void |
saveSpawningHeightmap(net.minecraftforge.event.world.ChunkDataEvent.Save event) |
public static boolean canSeeSky(net.minecraft.util.math.BlockPos pos, net.minecraft.world.World world)
pos
- The position of the block to start at.world
- The world that the block is in.public static java.util.concurrent.CompletableFuture<java.lang.Integer> getHeight(net.minecraft.util.math.BlockPos pos, net.minecraft.world.World world)
pos
- The position of the block to start at.world
- The world that the block is in.public static void blockUpdate(net.minecraftforge.event.world.BlockEvent.NeighborNotifyEvent event)
public static void loadSpawningHeightmap(net.minecraftforge.event.world.ChunkDataEvent.Load event)
public static void saveSpawningHeightmap(net.minecraftforge.event.world.ChunkDataEvent.Save event)
public static void onChunkUnload(net.minecraftforge.event.world.ChunkEvent.Unload event)