de.pewpewproject.lasertag.item.material.LaserVestMaterial   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 25
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getDurability(EquipmentSlot) 0 3 1
A getToughness() 0 3 1
A getProtectionAmount(EquipmentSlot) 0 3 1
A getEquipSound() 0 3 1
A getKnockbackResistance() 0 3 1
A getEnchantability() 0 3 1
A getRepairIngredient() 0 3 1
A getName() 0 3 1
1
package de.pewpewproject.lasertag.item.material;
2
3
import net.minecraft.entity.EquipmentSlot;
4
import net.minecraft.item.ArmorMaterial;
5
import net.minecraft.recipe.Ingredient;
6
import net.minecraft.sound.SoundEvent;
7
import net.minecraft.sound.SoundEvents;
8
9
/**
10
 * The material of the laser vest item
11
 *
12
 * @author Étienne Muser
13
 */
14
public class LaserVestMaterial implements ArmorMaterial {
15
    @Override
16
    public int getDurability(EquipmentSlot slot) {
17
        return Integer.MAX_VALUE;
18
    }
19
20
    @Override
21
    public int getProtectionAmount(EquipmentSlot slot) {
22
        return 0;
23
    }
24
25
    @Override
26
    public int getEnchantability() {
27
        return 0;
28
    }
29
30
    @Override
31
    public SoundEvent getEquipSound() {
32
        return SoundEvents.ITEM_ARMOR_EQUIP_LEATHER;
33
    }
34
35
    @Override
36
    public Ingredient getRepairIngredient() {
37
        return null;
38
    }
39
40
    @Override
41
    public String getName() {
42
        return "laservest_material";
43
    }
44
45
    @Override
46
    public float getToughness() {
47
        return 0;
48
    }
49
50
    @Override
51
    public float getKnockbackResistance() {
52
        return 0;
53
    }
54
}
55