summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java')
-rw-r--r--src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java b/src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java
new file mode 100644
index 0000000..90a1fc0
--- /dev/null
+++ b/src/main/java/moe/nea/beacons/mixin/SkullBlockRangeExtender.java
@@ -0,0 +1,14 @@
+package moe.nea.beacons.mixin;
+
+import moe.nea.beacons.BeaconRangeExtender;
+import net.minecraft.world.level.block.SkullBlock;
+import net.minecraft.world.level.block.WitherSkullBlock;
+import org.spongepowered.asm.mixin.Mixin;
+
+@Mixin(SkullBlock.class)
+public class SkullBlockRangeExtender implements BeaconRangeExtender {
+ @Override
+ public int extraBeaconRange_nea() {
+ return ((SkullBlock) (Object) this) instanceof WitherSkullBlock ? 32 : 5;
+ }
+}