summaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/beacons/mixin/BeaconBeamSectionMixin.java
blob: f4fe9484e52c149b52428d425116abb3e5e6c5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
	}
}