restructure things a bit for use in actual gameplay

This commit is contained in:
ruby
2025-01-05 21:23:32 +13:00
parent b2d9c1b36a
commit 57626e4f95
17 changed files with 229 additions and 116 deletions

View File

@ -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 = ""
}