-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # gradle.properties # src/main/resources/mcmod.info
- Loading branch information
Showing
67 changed files
with
1,345 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package unstudio.chinacraft.block; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockWall; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.IIcon; | ||
import unstudio.chinacraft.common.ChinaCraft; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by trychen on 17/5/7. | ||
*/ | ||
public class CCBlockWall extends BlockWall{ | ||
public Block block; | ||
|
||
public CCBlockWall(Block b) { | ||
super(b); | ||
this.block = b; | ||
this.setCreativeTab(ChinaCraft.tabCore); | ||
} | ||
|
||
@Override | ||
public IIcon getIcon(int p_149691_1_, int p_149691_2_) { | ||
return block.getIcon(p_149691_1_, p_149691_2_); | ||
} | ||
|
||
@Override | ||
public void getSubBlocks(Item p_149666_1_, CreativeTabs p_149666_2_, List p_149666_3_) { | ||
p_149666_3_.add(new ItemStack(p_149666_1_, 1, 0)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
src/main/java/unstudio/chinacraft/client/model/armor/ModelCassock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package unstudio.chinacraft.client.model.armor; | ||
|
||
import net.minecraft.client.model.ModelBiped; | ||
import net.minecraft.client.model.ModelRenderer; | ||
|
||
public class ModelCassock extends ModelBiped { | ||
private final float scale = 1.005f; | ||
|
||
ModelRenderer armorRightLeg; | ||
ModelRenderer armorLeftLeg; | ||
ModelRenderer armorInterBody; | ||
ModelRenderer armorRightArm; | ||
// ModelRenderer armorLeftArm; | ||
ModelRenderer armorOuterBody; | ||
ModelRenderer armorOuterLeftArm; | ||
ModelRenderer armorOuterRightLeg; | ||
ModelRenderer armorOuterLeftLeg; | ||
|
||
public ModelCassock() { | ||
super(0.0f, 0, 256, 128); | ||
textureWidth = 256; | ||
textureHeight = 128; | ||
|
||
armorRightLeg = new ModelRendererScale(this, 0, 16, scale); | ||
armorRightLeg.addBox(-2F, 0F, -2F, 4, 12, 4); | ||
armorRightLeg.setTextureSize(256, 128); | ||
armorRightLeg.mirror = true; | ||
|
||
armorLeftLeg = new ModelRendererScale(this, 0, 16, scale); | ||
armorLeftLeg.addBox(-2F, 0F, -2F, 4, 12, 4); | ||
armorLeftLeg.setTextureSize(256, 128); | ||
armorLeftLeg.mirror = true; | ||
|
||
armorInterBody = new ModelRendererScale(this, 16, 16, 1.009f); | ||
armorInterBody.addBox(-4F, 0F, -2F, 8, 12, 4); | ||
armorInterBody.setTextureSize(256, 128); | ||
armorInterBody.mirror = true; | ||
|
||
armorRightArm = new ModelRendererScale(this, 40, 16, scale); | ||
armorRightArm.addBox(-3F, -2.5F, -2F, 4, 11, 4); | ||
armorRightArm.setTextureSize(256, 128); | ||
armorRightArm.mirror = true; | ||
// | ||
// armorLeftArm = new ModelRenderer(this, 40, 16); | ||
// armorLeftArm.addBox(0F, 0F, -2F, 4, 11, 4); | ||
// armorLeftArm.setTextureSize(256, 128); | ||
// armorLeftArm.mirror = true; | ||
|
||
armorOuterBody = new ModelRendererScale(this, 0, 32, 1.01f); | ||
armorOuterBody.addBox(-4.5F, -0.5F, -2.5F, 9, 14, 5); | ||
armorOuterBody.setTextureSize(256, 128); | ||
armorOuterBody.mirror = true; | ||
|
||
armorOuterLeftArm = new ModelRendererScale(this, 36, 32, 1.08f); | ||
armorOuterLeftArm.addBox(-2.5F, -0.5F, -2.5F, 5, 11, 5); | ||
armorOuterLeftArm.setRotationPoint(0.75F, -1.625F, 0F); | ||
armorOuterLeftArm.setTextureSize(256, 128); | ||
armorOuterLeftArm.mirror = true; | ||
|
||
armorOuterLeftLeg = new ModelRendererScale(this, 6, 45, scale); | ||
armorOuterLeftLeg.addBox(-2.5F, 0F, -2.5F, 5, 10, 5); | ||
armorOuterLeftLeg.setTextureSize(256, 128); | ||
armorOuterLeftLeg.mirror = true; | ||
|
||
armorOuterRightLeg = new ModelRendererScale(this, 0, 45, scale); | ||
armorOuterRightLeg.addBox(-2.5F, 0F, -2.5F, 5, 10, 5); | ||
armorOuterRightLeg.setTextureSize(256, 128); | ||
armorOuterRightLeg.mirror = true; | ||
|
||
//bipedLeftArm.addChild(armorLeftArm); | ||
bipedLeftArm.addChild(armorOuterLeftArm); | ||
bipedBody.addChild(armorInterBody); | ||
bipedBody.addChild(armorOuterBody); | ||
bipedLeftLeg.addChild(armorLeftLeg); | ||
bipedLeftLeg.addChild(armorOuterLeftLeg); | ||
bipedRightLeg.addChild(armorRightLeg); | ||
bipedRightLeg.addChild(armorOuterRightLeg); | ||
bipedRightArm.addChild(armorRightArm); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/java/unstudio/chinacraft/client/model/armor/ModelNightClothes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/unstudio/chinacraft/client/model/armor/ModelRendererScale.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package unstudio.chinacraft.client.model.armor; | ||
|
||
import net.minecraft.client.model.ModelBase; | ||
import net.minecraft.client.model.ModelRenderer; | ||
import org.lwjgl.opengl.GL11; | ||
|
||
/** | ||
* Created by trychen on 17/4/1. | ||
*/ | ||
public class ModelRendererScale extends ModelRenderer { | ||
private float scale; | ||
public ModelRendererScale(ModelBase p_i1172_1_, String p_i1172_2_) { | ||
super(p_i1172_1_, p_i1172_2_); | ||
scale = 1f; | ||
} | ||
public ModelRendererScale(ModelBase p_i1172_1_, String p_i1172_2_, float scale) { | ||
super(p_i1172_1_, p_i1172_2_); | ||
this.scale = scale; | ||
} | ||
|
||
public ModelRendererScale(ModelBase p_i1173_1_) { | ||
super(p_i1173_1_); | ||
this.scale = 1f; | ||
} | ||
|
||
public ModelRendererScale(ModelBase p_i1173_1_, float scale) { | ||
super(p_i1173_1_); | ||
this.scale = scale; | ||
} | ||
|
||
public ModelRendererScale(ModelBase p_i1174_1_, int p_i1174_2_, int p_i1174_3_) { | ||
super(p_i1174_1_, p_i1174_2_, p_i1174_3_); | ||
this.scale = 1f; | ||
} | ||
|
||
public ModelRendererScale(ModelBase p_i1174_1_, int p_i1174_2_, int p_i1174_3_, float scale) { | ||
super(p_i1174_1_, p_i1174_2_, p_i1174_3_); | ||
this.scale = scale; | ||
} | ||
|
||
public void setScale(float scale) { | ||
this.scale = scale; | ||
} | ||
|
||
public float getScale() { | ||
return scale; | ||
} | ||
|
||
@Override | ||
public void render(float p_78785_1_) { | ||
GL11.glScalef(scale, scale, scale); | ||
super.render(p_78785_1_); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.