summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java')
-rw-r--r--src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java b/src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java
new file mode 100644
index 0000000..f4fe948
--- /dev/null
+++ b/src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java
@@ -0,0 +1,22 @@
+package moe.nea.beacons.mixin;
+
+import moe.nea.beacons.BeaconBeamSectionExtra;
+import net.minecraft.world.level.block.entity.BeaconBlockEntity;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Unique;
+
+@Mixin(BeaconBlockEntity.BeaconBeamSection.class)
+public class BeaconBeamSectionMixin implements BeaconBeamSectionExtra {
+ @Unique
+ private int rangeExtenders;
+
+ @Override
+ public void setRangeExtenders_nea(int newRangeExtenders) {
+ rangeExtenders = newRangeExtenders;
+ }
+
+ @Override
+ public int getRangeExtenders_nea() {
+ return rangeExtenders;
+ }
+}