de.pewpewproject.lasertag.block.entity.render.LasertargetLightsModel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

3 Methods

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