aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/items/recipes/EntityWidget.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/features/items/recipes/EntityWidget.kt')
-rw-r--r--src/main/kotlin/features/items/recipes/EntityWidget.kt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/kotlin/features/items/recipes/EntityWidget.kt b/src/main/kotlin/features/items/recipes/EntityWidget.kt
index 88d91ad..4a087e5 100644
--- a/src/main/kotlin/features/items/recipes/EntityWidget.kt
+++ b/src/main/kotlin/features/items/recipes/EntityWidget.kt
@@ -1,11 +1,16 @@
package moe.nea.firmament.features.items.recipes
-import me.shedaniel.math.Rectangle
+import me.shedaniel.math.Dimension
+import me.shedaniel.math.Point
import net.minecraft.client.gui.GuiGraphics
import net.minecraft.world.entity.LivingEntity
import moe.nea.firmament.gui.entity.EntityRenderer
-class EntityWidget(override val rect: Rectangle, val entity: LivingEntity) : RecipeWidget() {
+class EntityWidget(
+ override var position: Point,
+ override val size: Dimension,
+ val entity: LivingEntity
+) : RecipeWidget() {
override fun render(
guiGraphics: GuiGraphics,
mouseX: Int,