fix: use Ntx4Core.id

This commit is contained in:
LordMZTE 2023-11-01 17:44:52 +01:00
parent 604a904036
commit f498742076
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -1,31 +1,32 @@
package net.anvilcraft.ntx4core.cosmetics; package net.anvilcraft.ntx4core.cosmetics;
import net.anvilcraft.anvillib.cosmetics.ICosmetic; import net.anvilcraft.anvillib.cosmetics.ICosmetic;
import net.anvilcraft.ntx4core.Ntx4Core;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
public class AlecCosmetic implements ICosmetic { public class AlecCosmetic implements ICosmetic {
@Override @Override
public Identifier getAnimationFileLocation() { public Identifier getAnimationFileLocation() {
return new Identifier("ntx4core", "animations/alec.json"); return Ntx4Core.id("animations/alec.json");
} }
@Override @Override
public Identifier getModelLocation() { public Identifier getModelLocation() {
return new Identifier("ntx4core", "geo/alec.json"); return Ntx4Core.id("geo/alec.json");
} }
@Override @Override
public Identifier getTextureLocation() { public Identifier getTextureLocation() {
return new Identifier("ntx4core", "textures/alec.png"); return Ntx4Core.id("textures/alec.png");
} }
@Override @Override
public Identifier getID() { public Identifier getID() {
return new Identifier("ntx4core", "alec"); return Ntx4Core.id("alec");
} }
@Override @Override
public String getIdleAnimationName() { public String getIdleAnimationName() {
return "animation.alec.idle"; return "animation.alec.idle";
} }
} }