aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/mc/PlayerUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/mc/PlayerUtil.kt')
-rw-r--r--src/main/kotlin/util/mc/PlayerUtil.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/util/mc/PlayerUtil.kt b/src/main/kotlin/util/mc/PlayerUtil.kt
new file mode 100644
index 0000000..53ef1f4
--- /dev/null
+++ b/src/main/kotlin/util/mc/PlayerUtil.kt
@@ -0,0 +1,7 @@
+package moe.nea.firmament.util.mc
+
+import net.minecraft.entity.EquipmentSlot
+import net.minecraft.entity.player.PlayerEntity
+
+
+val PlayerEntity.mainHandStack get() = this.getEquippedStack(EquipmentSlot.MAINHAND)