diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-06-17 08:12:18 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-06-17 08:12:18 +0300 |
| commit | dc3df3edd5843bde0c1335d6a8e460b2c832aa48 (patch) | |
| tree | af13bfeee567f2351e35e1ef176d168fe37c8aac /ihl/model/RenderInfo.java | |
| parent | 1da8dcd58647e34c9af94ceeecaeaf3b0d08c48c (diff) | |
full project files
Diffstat (limited to 'ihl/model/RenderInfo.java')
| -rw-r--r-- | ihl/model/RenderInfo.java | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/ihl/model/RenderInfo.java b/ihl/model/RenderInfo.java deleted file mode 100644 index 4e85f6f..0000000 --- a/ihl/model/RenderInfo.java +++ /dev/null @@ -1,71 +0,0 @@ -package ihl.model;
-
-import java.util.Arrays;
-
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import net.minecraft.block.Block;
-import net.minecraft.init.Blocks;
-import net.minecraft.util.IIcon;
-
-@SideOnly(value=Side.CLIENT)
-public class RenderInfo {
-
- public Block template = Blocks.stone;
- public IIcon[] texture = null;
- public IIcon override = null;
- public float minX = 0;
- public float minY = 0;
- public float minZ = 0;
- public float maxX = 1;
- public float maxY = 1;
- public float maxZ = 1;
- public boolean[] renderSide = new boolean[6];
- public float light = -1f;
- public int brightness = -1;
-
- public RenderInfo() {
- setRenderAllSides();
- }
-
- public RenderInfo(Block template, IIcon[] texture) {
- this();
- this.template = template;
- this.texture = texture;
- }
-
- public RenderInfo(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) {
- this();
- setBlockBounds(minX, minY, minZ, maxX, maxY, maxZ);
- }
-
- public final void setBlockBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) {
- this.minX = minX;
- this.minY = minY;
- this.minZ = minZ;
- this.maxX = maxX;
- this.maxY = maxY;
- this.maxZ = maxZ;
- }
-
- public final void setRenderSingleSide(int side) {
- Arrays.fill(renderSide, false);
- renderSide[side] = true;
- }
-
- public final void setRenderAllSides() {
- Arrays.fill(renderSide, true);
- }
-
- public IIcon getBlockTextureFromSide(int i) {
- if (override != null)
- return override;
- if (texture == null || texture.length == 0)
- return template.getBlockTextureFromSide(i);
- else {
- if (i >= texture.length)
- i = 0;
- return texture[i];
- }
- }
-}
|
