mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Update to 1.10
This commit is contained in:
parent
95b1975357
commit
6645410497
3 changed files with 16 additions and 7 deletions
|
@ -21,19 +21,19 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
ext.revision = 220
|
||||
ext.revision = 221
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle.liteloader'
|
||||
apply plugin: 'org.spongepowered.mixin'
|
||||
apply plugin: 'mnm.gradle.ap-ide'
|
||||
|
||||
group = 'com.brohoof.minelp'
|
||||
version = '1.9.4.2'
|
||||
version = '1.10.0.0'
|
||||
description = 'Mine Little Pony'
|
||||
|
||||
minecraft {
|
||||
version = "1.9.4"
|
||||
mappings = 'snapshot_20160517'
|
||||
version = "1.10"
|
||||
mappings = 'snapshot_20160619'
|
||||
runDir = 'run'
|
||||
replace '@VERSION@',project.version
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ public class PonyManager {
|
|||
public static final ResourceLocation PIGMAN = new ResourceLocation(NAMESPACE, "textures/entity/zombie/zombie_pigman_pony.png");
|
||||
public static final ResourceLocation SKELETON = new ResourceLocation(NAMESPACE, "textures/entity/skeleton/skeleton_pony.png");
|
||||
public static final ResourceLocation WITHER_SKELETON = new ResourceLocation(NAMESPACE, "textures/entity/skeleton/skeleton_wither_pony.png");
|
||||
public static final ResourceLocation STRAY_SKELETON = new ResourceLocation(NAMESPACE, "textures/entity/skeleton/stray_pony.png");
|
||||
public static final ResourceLocation STEVE = new ResourceLocation(NAMESPACE, "textures/entity/steve_pony.png");
|
||||
public static final ResourceLocation ALEX = new ResourceLocation(NAMESPACE, "textures/entity/alex_pony.png");
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import net.minecraft.client.renderer.GlStateManager;
|
|||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.entity.layers.LayerBipedArmor;
|
||||
import net.minecraft.entity.monster.EntitySkeleton;
|
||||
import net.minecraft.entity.monster.SkeletonType;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public class RenderPonySkeleton extends RenderPonyMob<EntitySkeleton> {
|
||||
|
@ -30,7 +31,8 @@ public class RenderPonySkeleton extends RenderPonyMob<EntitySkeleton> {
|
|||
@Override
|
||||
protected void preRenderCallback(EntitySkeleton skeleton, float partialTicks) {
|
||||
super.preRenderCallback(skeleton, partialTicks);
|
||||
if (skeleton.getSkeletonType() == 1) {
|
||||
if (skeleton.func_189771_df() == SkeletonType.WITHER) {// getSkeletonType()
|
||||
// == 1) {
|
||||
GlStateManager.scale(1.2F, 1.2F, 1.2F);
|
||||
}
|
||||
|
||||
|
@ -56,6 +58,12 @@ public class RenderPonySkeleton extends RenderPonyMob<EntitySkeleton> {
|
|||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(EntitySkeleton skeleton) {
|
||||
return skeleton.getSkeletonType() == 1 ? PonyManager.WITHER_SKELETON : PonyManager.SKELETON;
|
||||
SkeletonType type = skeleton.func_189771_df();
|
||||
if (type == SkeletonType.WITHER)
|
||||
return PonyManager.WITHER_SKELETON;
|
||||
else if (type == SkeletonType.STRAY)
|
||||
return PonyManager.STRAY_SKELETON;
|
||||
else
|
||||
return PonyManager.SKELETON;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue