-
Notifications
You must be signed in to change notification settings - Fork 9
/
EnumPedestalEntry.java
51 lines (41 loc) · 1.62 KB
/
EnumPedestalEntry.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/***************************************************************************************************
* Copyright (c) 2014, Lukas Tenbrink.
* http://lukas.axxim.net
**************************************************************************************************/
package ivorius.yegamolchattels.blocks;
import ivorius.yegamolchattels.client.rendering.*;
import net.minecraft.client.model.ModelBase;
public enum EnumPedestalEntry
{
woodPedestal(0, new int[]{1, 2, 1}, 0, null),
stonePedestal(0, new int[]{1, 2, 1}, 0, null),
ironPedestal(20, new int[]{1, 2, 1}, 0, null),
goldPedestal(60, new int[]{1, 2, 1}, 0, new float[]{3.0f, 2.0f, 3.0f}),
diamondPedestal(150, new int[]{1, 2, 1}, 1, new float[]{4.0f, 5.0f, 4.0f}),
// netherPedestal( 300, new int[] { 1, 2, 1 }, new ModelPedestalDiamond(), 1, false ),
;
public final int integrationTime;
public final int[] size;
public final int blendMode;
public final float[] visualExtent;
private EnumPedestalEntry(int integrationTime, int[] size, int blendMode, float[] visualExtent)
{
this.integrationTime = integrationTime;
this.size = size;
this.blendMode = blendMode;
this.visualExtent = visualExtent;
}
public static EnumPedestalEntry getEntry(int identifier)
{
EnumPedestalEntry[] entries = EnumPedestalEntry.values();
return (identifier < 0 || identifier > entries.length) ? null : entries[identifier];
}
public static int getNumberOfEntries()
{
return EnumPedestalEntry.values().length;
}
public int getIntIdentifier()
{
return ordinal();
}
}