Passed
Push — main ( 998a70...3dfaee )
by Etienne
01:28
created

de.kleiner3.lasertag.item.model.LasertagWeaponModel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTextureResource(LasertagWeaponItem) 0 3 1
A getAnimationResource(LasertagWeaponItem) 0 3 1
A getModelResource(LasertagWeaponItem) 0 3 1
1
package de.kleiner3.lasertag.item.model;
2
3
import de.kleiner3.lasertag.LasertagMod;
4
import de.kleiner3.lasertag.item.LasertagWeaponItem;
5
import net.minecraft.util.Identifier;
6
import software.bernie.geckolib3.model.AnimatedGeoModel;
7
8
/**
9
 * Model for the lasertag weapon
10
 *
11
 * @author Étienne Muser
12
 */
13
public class LasertagWeaponModel extends AnimatedGeoModel<LasertagWeaponItem> {
14
    @Override
15
    public Identifier getModelResource(LasertagWeaponItem object) {
16
        return new Identifier(LasertagMod.ID, "geo/lasertag_weapon.geo.json");
17
    }
18
19
    @Override
20
    public Identifier getTextureResource(LasertagWeaponItem object) {
21
        return new Identifier(LasertagMod.ID, "textures/item/lasertag_weapon.png");
22
    }
23
24
    @Override
25
    public Identifier getAnimationResource(LasertagWeaponItem animatable) {
26
        return new Identifier(LasertagMod.ID, "animations/idle_animation.json");
27
    }
28
}
29