laser(PlayerEntity)   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
package de.pewpewproject.lasertag.damage;
2
3
import net.minecraft.entity.damage.DamageSource;
4
import net.minecraft.entity.damage.EntityDamageSource;
5
import net.minecraft.entity.player.PlayerEntity;
6
7
/**
8
 * Class to hold all damage sources
9
 *
10
 * @author Étienne Muser
11
 */
12
public class DamageSources {
13
14
    public static DamageSource laser(PlayerEntity shooter) {
15
16
        return new EntityDamageSource("laser", shooter).setBypassesArmor().setUnblockable();
17
    }
18
}
19