de.pewpewproject.lasertag.damage.DamageSources   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A laser(PlayerEntity) 0 3 1
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