forked from yorkeJohn/Tainted-Magic
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
6,094 additions
and
6,046 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package taintedmagic.api; | ||
|
||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
|
||
/** | ||
* Interface implemented by Bloodlust weapons | ||
*/ | ||
public interface IBloodlust | ||
{ | ||
public interface IBloodlust { | ||
} |
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 |
---|---|---|
@@ -1,48 +1,43 @@ | ||
package taintedmagic.client.model; | ||
|
||
import org.lwjgl.opengl.GL11; | ||
|
||
import net.minecraft.client.model.ModelBase; | ||
import net.minecraft.client.model.ModelRenderer; | ||
|
||
/** | ||
* katana - wiiv Created using Tabula 4.1.1 | ||
*/ | ||
public class ModelKatana extends ModelBase | ||
{ | ||
public ModelRenderer blade; | ||
public ModelRenderer grip1; | ||
public ModelRenderer grip2; | ||
public class ModelKatana extends ModelBase { | ||
|
||
public ModelRenderer blade; | ||
public ModelRenderer grip1; | ||
public ModelRenderer grip2; | ||
|
||
public ModelKatana () | ||
{ | ||
this.textureWidth = 32; | ||
this.textureHeight = 64; | ||
this.grip2 = new ModelRenderer(this, 22, 0); | ||
this.grip2.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
this.grip2.addBox(-1.0F, -12.0F, -1.5F, 2, 12, 3, 0.0F); | ||
this.blade = new ModelRenderer(this, 0, 0); | ||
this.blade.setRotationPoint(0.0F, -40.0F, 0.0F); | ||
this.blade.addBox(-0.5F, 0.0F, -2.0F, 1, 48, 4, -0.75F); | ||
this.grip1 = new ModelRenderer(this, 0, 52); | ||
this.grip1.setRotationPoint(0.0F, -40.0F, 0.0F); | ||
this.grip1.addBox(-2.5F, 0.0F, -3.5F, 5, 1, 7, 0.0F); | ||
this.grip1.addChild(this.grip2); | ||
} | ||
public ModelKatana() { | ||
this.textureWidth = 32; | ||
this.textureHeight = 64; | ||
this.grip2 = new ModelRenderer(this, 22, 0); | ||
this.grip2.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
this.grip2.addBox(-1.0F, -12.0F, -1.5F, 2, 12, 3, 0.0F); | ||
this.blade = new ModelRenderer(this, 0, 0); | ||
this.blade.setRotationPoint(0.0F, -40.0F, 0.0F); | ||
this.blade.addBox(-0.5F, 0.0F, -2.0F, 1, 48, 4, -0.75F); | ||
this.grip1 = new ModelRenderer(this, 0, 52); | ||
this.grip1.setRotationPoint(0.0F, -40.0F, 0.0F); | ||
this.grip1.addBox(-2.5F, 0.0F, -3.5F, 5, 1, 7, 0.0F); | ||
this.grip1.addChild(this.grip2); | ||
} | ||
|
||
public void render (float size) | ||
{ | ||
this.blade.render(size); | ||
this.grip1.render(size); | ||
} | ||
public void render(float size) { | ||
this.blade.render(size); | ||
this.grip1.render(size); | ||
} | ||
|
||
/** | ||
* This is a helper function from Tabula to set the rotation of model parts | ||
*/ | ||
private void setRotation (ModelRenderer m, float x, float y, float z) | ||
{ | ||
m.rotateAngleX = x; | ||
m.rotateAngleY = y; | ||
m.rotateAngleZ = z; | ||
} | ||
/** | ||
* This is a helper function from Tabula to set the rotation of model parts | ||
*/ | ||
private void setRotation(ModelRenderer m, float x, float y, float z) { | ||
m.rotateAngleX = x; | ||
m.rotateAngleY = y; | ||
m.rotateAngleZ = z; | ||
} | ||
} |
Oops, something went wrong.