Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
WeAthFolD committed Nov 4, 2015
1 parent 833cbf8 commit 8932e63
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply plugin: 'forge'
sourceCompatibility = 1.7
targetCompatibility = 1.7

version = "0.1"
version = "0.11"
group= "cn.modularequipment" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "ModularEquipment"

Expand Down
8 changes: 6 additions & 2 deletions document.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ type指示了该物品的类型(剑,铲子,盔甲,……)。某些类

注意

* 根据mc的盔甲贴图绘制规则`[armorTexture]_0.png`是除了裤子的其他贴图`[armorTexture]_1.png`是裤子的贴图
* 根据mc的盔甲模型贴图绘制规则`[armorTexture]_0.png`是除了裤子的其他模型贴图`[armorTexture]_1.png`是裤子的模型贴图
* `[texture]_0123`分别是头盔、胸甲、裤子、鞋子的贴图路径。


Expand Down Expand Up @@ -143,7 +143,11 @@ type指示了该物品的类型(剑,铲子,盔甲,……)。某些类
"name": "stupid_pickaxe",
"type": "pickaxe",
"toolClass": "wood",
"texture": "diamond_pickaxe"
"texture": "diamond_pickaxe",
"fp_transform" {
"scale": 2.0,
"offset": [2, 3, 3]
}
},
{
"name": "some_armor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*/
package cn.modularequipment.client;

import static cn.lambdalib.util.generic.VecUtils.vec;

import org.lwjgl.opengl.GL11;

import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -101,6 +99,10 @@ private void addVertex(Vec3 vec, double u, double v) {
t.addVertexWithUV(vec.xCoord, vec.yCoord, vec.zCoord, u, v);
}

static Vec3 vec(double x, double y, double z) {
return Vec3.createVectorHelper(x, y, z);
}

private void drawEquippedItem(double w, ResourceLocation front, ResourceLocation back,
double u1, double v1, double u2, double v2, boolean faceOnly) {
Vec3 a1 = vec(0, 0, w),
Expand Down

0 comments on commit 8932e63

Please sign in to comment.