diff --git a/.gitignore b/.gitignore index 6bb4c399..64e6c9cd 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ run/ *.launch /.apt_generated/ .factorypath -logs/ \ No newline at end of file +logs/ +.idea/ +classes/ \ No newline at end of file diff --git a/build.gradle b/build.gradle index fb8cd7d4..b40bd1de 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,8 @@ description = 'Mine Little Pony' minecraft { version = "1.11" - mappings = 'snapshot_20161116' + // first snapshot for 1.11. Change to stable when possible. + mappings = 'snapshot_20161120' runDir = 'run' replace '@VERSION@',project.version } diff --git a/src/main/java/com/minelittlepony/mixin/MixinRenderPlayer.java b/src/main/java/com/minelittlepony/mixin/MixinRenderPlayer.java index c8e678c6..a36e7200 100644 --- a/src/main/java/com/minelittlepony/mixin/MixinRenderPlayer.java +++ b/src/main/java/com/minelittlepony/mixin/MixinRenderPlayer.java @@ -57,7 +57,7 @@ public abstract class MixinRenderPlayer extends RenderLivingBase(this)); this.addLayer(new LayerArrow(this)); this.addLayer(new LayerPonyCape(this)); this.addLayer(new LayerPonySkull(this)); @@ -95,7 +95,7 @@ public abstract class MixinRenderPlayer extends RenderLivingBase { @Override protected ResourceLocation getEntityTexture(EntityVex entity) { - return entity.func_190647_dj() ? VEX_CHARGING : VEX; + return entity.isCharging() ? VEX_CHARGING : VEX; } } diff --git a/src/main/java/com/minelittlepony/renderer/RenderPonyVillager.java b/src/main/java/com/minelittlepony/renderer/RenderPonyVillager.java index 6819d2f7..da5b34be 100644 --- a/src/main/java/com/minelittlepony/renderer/RenderPonyVillager.java +++ b/src/main/java/com/minelittlepony/renderer/RenderPonyVillager.java @@ -3,6 +3,7 @@ package com.minelittlepony.renderer; import com.minelittlepony.MineLittlePony; import com.minelittlepony.model.PMAPI; import com.minelittlepony.model.pony.ModelVillagerPony; +import com.minelittlepony.util.Villagers; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.RenderManager; @@ -45,17 +46,17 @@ public class RenderPonyVillager extends RenderPonyMob { private ResourceLocation getTextureForVillager(EntityVillager villager) { switch (villager.getProfession()) { - case 0: + case Villagers.FARMER: return FARMER; - case 1: + case Villagers.LIBRARIAN: return LIBRARIAN; - case 2: + case Villagers.PRIEST: return PRIEST; - case 3: + case Villagers.BLACKSMITH: return SMITH; - case 4: + case Villagers.BUTCHER: return BUTCHER; - case 5: + case Villagers.GENERIC: default: return GENERIC; } diff --git a/src/main/java/com/minelittlepony/renderer/RenderPonyZombieVillager.java b/src/main/java/com/minelittlepony/renderer/RenderPonyZombieVillager.java index 050d1007..74af49b6 100644 --- a/src/main/java/com/minelittlepony/renderer/RenderPonyZombieVillager.java +++ b/src/main/java/com/minelittlepony/renderer/RenderPonyZombieVillager.java @@ -1,6 +1,7 @@ package com.minelittlepony.renderer; import com.minelittlepony.model.PMAPI; +import com.minelittlepony.util.Villagers; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.monster.EntityZombieVillager; @@ -25,29 +26,29 @@ public class RenderPonyZombieVillager extends RenderPonyMob