restructure things a bit for use in actual gameplay
This commit is contained in:
@ -1,16 +1,8 @@
|
||||
package com.pobnellion.aoe.building
|
||||
|
||||
import org.bukkit.Location
|
||||
import org.bukkit.Material
|
||||
|
||||
class Blacksmith(location: Location, variant: Int): Building(location, variant) {
|
||||
fun place(location: Location, sizeX: Float, sizeY: Float, sizeZ: Float, offsetY: Int) {
|
||||
for (x in 0..<sizeX.toInt())
|
||||
for (y in 0..<sizeY.toInt())
|
||||
for (z in 0..<sizeZ.toInt())
|
||||
location.world.getBlockAt(
|
||||
location.blockX + x,
|
||||
location.blockY + y,
|
||||
location.blockZ + z ).type = Material.SMOOTH_STONE
|
||||
}
|
||||
override var populationCapacity: Int = 0
|
||||
override fun getSchematicName(variant: Int): String = ""
|
||||
}
|
||||
Reference in New Issue
Block a user