-
Notifications
You must be signed in to change notification settings - Fork 77
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
4 changed files
with
79 additions
and
2 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
12 changes: 12 additions & 0 deletions
12
chunky/src/java/se/llbit/chunky/block/minecraft/HeavyCore.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,12 @@ | ||
package se.llbit.chunky.block.minecraft; | ||
|
||
import se.llbit.chunky.block.AbstractModelBlock; | ||
import se.llbit.chunky.model.minecraft.HeavyCoreModel; | ||
import se.llbit.chunky.resources.Texture; | ||
|
||
public class HeavyCore extends AbstractModelBlock { | ||
public HeavyCore() { | ||
super("heavy_core", Texture.heavyCore); | ||
this.model = new HeavyCoreModel(); | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
chunky/src/java/se/llbit/chunky/model/minecraft/HeavyCoreModel.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,63 @@ | ||
package se.llbit.chunky.model.minecraft; | ||
|
||
import se.llbit.chunky.model.QuadModel; | ||
import se.llbit.chunky.resources.Texture; | ||
import se.llbit.math.Quad; | ||
import se.llbit.math.Vector3; | ||
import se.llbit.math.Vector4; | ||
|
||
public class HeavyCoreModel extends QuadModel { | ||
private static final Texture[] textures = new Texture[]{ | ||
Texture.heavyCore, Texture.heavyCore, Texture.heavyCore, | ||
Texture.heavyCore, Texture.heavyCore, Texture.heavyCore, | ||
}; | ||
|
||
private static final Quad[] quads = new Quad[]{ | ||
new Quad( | ||
new Vector3(4 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(12 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(4 / 16.0, 8 / 16.0, 4 / 16.0), | ||
new Vector4(0 / 16.0, 8 / 16.0, 8 / 16.0, 16 / 16.0) | ||
), | ||
new Quad( | ||
new Vector3(4 / 16.0, 0 / 16.0, 4 / 16.0), | ||
new Vector3(12 / 16.0, 0 / 16.0, 4 / 16.0), | ||
new Vector3(4 / 16.0, 0 / 16.0, 12 / 16.0), | ||
new Vector4(8 / 16.0, 16 / 16.0, 8 / 16.0, 16 / 16.0) | ||
), | ||
new Quad( | ||
new Vector3(4 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(4 / 16.0, 8 / 16.0, 4 / 16.0), | ||
new Vector3(4 / 16.0, 0 / 16.0, 12 / 16.0), | ||
new Vector4(8 / 16.0, 0 / 16.0, 8 / 16.0, 0 / 16.0) | ||
), | ||
new Quad( | ||
new Vector3(12 / 16.0, 8 / 16.0, 4 / 16.0), | ||
new Vector3(12 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(12 / 16.0, 0 / 16.0, 4 / 16.0), | ||
new Vector4(8 / 16.0, 0 / 16.0, 8 / 16.0, 0 / 16.0) | ||
), | ||
new Quad( | ||
new Vector3(4 / 16.0, 8 / 16.0, 4 / 16.0), | ||
new Vector3(12 / 16.0, 8 / 16.0, 4 / 16.0), | ||
new Vector3(4 / 16.0, 0 / 16.0, 4 / 16.0), | ||
new Vector4(8 / 16.0, 0 / 16.0, 8 / 16.0, 0 / 16.0) | ||
), | ||
new Quad( | ||
new Vector3(12 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(4 / 16.0, 8 / 16.0, 12 / 16.0), | ||
new Vector3(12 / 16.0, 0 / 16.0, 12 / 16.0), | ||
new Vector4(8 / 16.0, 0 / 16.0, 8 / 16.0, 0 / 16.0) | ||
) | ||
}; | ||
|
||
@Override | ||
public Quad[] getQuads() { | ||
return quads; | ||
} | ||
|
||
@Override | ||
public Texture[] getTextures() { | ||
return textures; | ||
} | ||
} |
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