blob: 90a1fc0c7501c7c47303c1688b93c009d1ca56ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
}
|