de.pewpewproject.lasertag.item.model.LasertagFlagItemModel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

3 Methods

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