use of net.minecraft.util.Identifier in project bewitchment by MoriyaShiine.
the class BWSoundEvents method create.
private static SoundEvent create(String name) {
Identifier id = new Identifier(Bewitchment.MODID, name);
SoundEvent soundEvent = new SoundEvent(id);
SOUND_EVENTS.put(soundEvent, id);
return soundEvent;
}
use of net.minecraft.util.Identifier in project bewitchment by MoriyaShiine.
the class DemonEntityRenderer method getTexture.
@Override
public Identifier getTexture(DemonEntity entity) {
if (MALE_TEXTURES == null) {
int variants = entity.getVariants();
MALE_TEXTURES = new Identifier[variants];
FEMALE_TEXTURES = new Identifier[variants];
for (int i = 0; i < variants; i++) {
MALE_TEXTURES[i] = new Identifier(Bewitchment.MODID, "textures/entity/living/demon/male_" + i + ".png");
FEMALE_TEXTURES[i] = new Identifier(Bewitchment.MODID, "textures/entity/living/demon/female_" + i + ".png");
}
}
int variant = entity.getDataTracker().get(BWHostileEntity.VARIANT);
return entity.getDataTracker().get(DemonEntity.MALE) ? MALE_TEXTURES[variant] : FEMALE_TEXTURES[variant];
}
use of net.minecraft.util.Identifier in project bewitchment by MoriyaShiine.
the class HellhoundEntityRenderer method getTexture.
@Override
public Identifier getTexture(HellhoundEntity entity) {
if (TEXTURES == null) {
int variants = entity.getVariants();
TEXTURES = new Identifier[variants];
for (int i = 0; i < variants; i++) {
TEXTURES[i] = new Identifier(Bewitchment.MODID, "textures/entity/living/hellhound/" + i + ".png");
}
}
return TEXTURES[entity.getDataTracker().get(BWHostileEntity.VARIANT)];
}
use of net.minecraft.util.Identifier in project bewitchment by MoriyaShiine.
the class ToadEntityRenderer method getTexture.
@Override
public Identifier getTexture(ToadEntity entity) {
if (TEXTURES == null) {
int variants = entity.getVariants();
TEXTURES = new Identifier[variants];
for (int i = 0; i < variants; i++) {
TEXTURES[i] = new Identifier(Bewitchment.MODID, "textures/entity/living/toad/" + i + ".png");
}
}
return TEXTURES[entity.getDataTracker().get(BWTameableEntity.VARIANT)];
}
use of net.minecraft.util.Identifier in project bewitchment by MoriyaShiine.
the class VampireEntityRenderer method getTexture.
@Override
public Identifier getTexture(VampireEntity entity) {
if (TEXTURES == null) {
int variants = entity.getVariants();
TEXTURES = new Identifier[variants];
for (int i = 0; i < variants; i++) {
TEXTURES[i] = new Identifier(Bewitchment.MODID, "textures/entity/living/vampire/" + i + ".png");
}
}
return TEXTURES[entity.getDataTracker().get(BWHostileEntity.VARIANT)];
}
Aggregations