Class VillageCollection

java.lang.Object
net.minecraft.src.WorldSavedData
net.minecraft.src.VillageCollection

public class VillageCollection extends WorldSavedData
  • Constructor Details

    • VillageCollection

      public VillageCollection(String par1Str)
    • VillageCollection

      public VillageCollection(World par1World)
  • Method Details

    • func_82566_a

      public void func_82566_a(World par1World)
    • addVillagerPosition

      public void addVillagerPosition(int par1, int par2, int par3)
      This is a black hole. You can add data to this list through a public interface, but you can't query that information in any way and it's not used internally either.
    • tick

      public void tick()
      Runs a single tick for the village collection
    • getVillageList

      public List getVillageList()
      Get a list of villages.
    • findNearestVillage

      public Village findNearestVillage(int par1, int par2, int par3, int par4)
      Finds the nearest village, but only the given coordinates are withing it's bounding box plus the given the distance.
    • readFromNBT

      public void readFromNBT(NBTTagCompound par1NBTTagCompound)
      reads in data from the NBTTagCompound into this MapDataBase
      Specified by:
      readFromNBT in class WorldSavedData
    • writeToNBT

      public void writeToNBT(NBTTagCompound par1NBTTagCompound)
      write data to NBTTagCompound from this MapDataBase, similar to Entities and TileEntities
      Specified by:
      writeToNBT in class WorldSavedData