mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
let me use getProfession in peace. I don't care that forge has their own one.
This commit is contained in:
parent
b78558c72f
commit
9c50f6c480
3 changed files with 4 additions and 3 deletions
|
@ -64,7 +64,7 @@ public class ModelVillagerPony extends ModelMobPony {
|
||||||
return super.isWearing(wearable);
|
return super.isWearing(wearable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation") // let me use getProfession in peace. I don't care that forge has their own one.
|
||||||
protected int getProfession(Entity entity) {
|
protected int getProfession(Entity entity) {
|
||||||
if (entity instanceof EntityVillager) {
|
if (entity instanceof EntityVillager) {
|
||||||
return ((EntityVillager) entity).getProfession();
|
return ((EntityVillager) entity).getProfession();
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class RenderPonyVillager extends RenderPonyMob<EntityVillager> {
|
||||||
GlStateManager.scalef(BASE_MODEL_SCALE, BASE_MODEL_SCALE, BASE_MODEL_SCALE);
|
GlStateManager.scalef(BASE_MODEL_SCALE, BASE_MODEL_SCALE, BASE_MODEL_SCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
|
@SuppressWarnings("deprecation") // let me use getProfession in peace. I don't care that forge has their own one.
|
||||||
@Override
|
@Override
|
||||||
public ResourceLocation getTexture(EntityVillager entity) {
|
public ResourceLocation getTexture(EntityVillager entity) {
|
||||||
String name = entity.getCustomName().getUnformattedComponentText();
|
String name = entity.getCustomName().getUnformattedComponentText();
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class RenderPonyZombieVillager extends RenderPonyMob<EntityZombieVillager
|
||||||
super(manager, MODEL_WRAPPER);
|
super(manager, MODEL_WRAPPER);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation") // let me use getProfession in peace. I don't care that forge has their own one.
|
||||||
@Override
|
@Override
|
||||||
public ResourceLocation getTexture(EntityZombieVillager entity) {
|
public ResourceLocation getTexture(EntityZombieVillager entity) {
|
||||||
String name = entity.getCustomName().getUnformattedComponentText();
|
String name = entity.getCustomName().getUnformattedComponentText();
|
||||||
|
|
Loading…
Reference in a new issue