public class DarkTempleData
extends net.minecraft.world.WorldSavedData
| Constructor and Description |
|---|
DarkTempleData(java.lang.String mapName)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStructureLocation(int x,
int y,
int z)
Add a location of a new dark temple.
|
boolean |
isStructureInRange(int x,
int y,
int z,
int range)
Check if a dark temple is in the range of the given coordinates.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
public DarkTempleData(java.lang.String mapName)
mapName - NBT tag and .dat filename for dark temples.public void addStructureLocation(int x,
int y,
int z)
x - X-coordinate of the dark temple.y - Y-coordinate of the dark temple.z - Z-coordinate of the dark temple.public boolean isStructureInRange(int x,
int y,
int z,
int range)
x - The X-coordinate of the given location.y - The Y-coordinate of the given location.z - The Z-coordinate of the given location.range - The range in which we have to search for other dark temples
around the given location.public void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class net.minecraft.world.WorldSavedDatapublic void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class net.minecraft.world.WorldSavedData