mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
small material test
This commit is contained in:
parent
9f30c1c021
commit
f608d55f93
20
src/main/java/com/hbm/inventory/material/MaterialShapes.java
Normal file
20
src/main/java/com/hbm/inventory/material/MaterialShapes.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package com.hbm.inventory.material;
|
||||||
|
|
||||||
|
public enum MaterialShapes {
|
||||||
|
|
||||||
|
QUANTUM(1), // 1/72 of an ingot, allows the ingot to be divisible through 2, 4, 6, 8, 9, 12, 24 and 36
|
||||||
|
NUGGET(8, "nugget"),
|
||||||
|
WIRE(9),
|
||||||
|
INGOT(NUGGET.quantity * 9, "ingot"),
|
||||||
|
DUST(INGOT.quantity, "dust"),
|
||||||
|
PLATE(INGOT.quantity, "plate"),
|
||||||
|
BLOCK(INGOT.quantity * 9, "block");
|
||||||
|
|
||||||
|
int quantity;
|
||||||
|
String[] prefixes;
|
||||||
|
|
||||||
|
private MaterialShapes(int quantity, String... prefixes) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
this.prefixes = prefixes;
|
||||||
|
}
|
||||||
|
}
|
||||||
5
src/main/java/com/hbm/inventory/material/Mats.java
Normal file
5
src/main/java/com/hbm/inventory/material/Mats.java
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package com.hbm.inventory.material;
|
||||||
|
|
||||||
|
public class Mats {
|
||||||
|
|
||||||
|
}
|
||||||
33
src/main/java/com/hbm/inventory/material/NTMMaterial.java
Normal file
33
src/main/java/com/hbm/inventory/material/NTMMaterial.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package com.hbm.inventory.material;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Encapsulates most materials that are currently listed as DictFrames, even vanilla ones.
|
||||||
|
* @author hbm
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class NTMMaterial {
|
||||||
|
|
||||||
|
public String[] names;
|
||||||
|
public MaterialShapes[] shapes = new MaterialShapes[0];
|
||||||
|
public boolean omitItemGen = false;
|
||||||
|
public boolean smeltable = false;
|
||||||
|
|
||||||
|
public NTMMaterial(String... names) {
|
||||||
|
this.names = names;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NTMMaterial setShapes(MaterialShapes... shapes) {
|
||||||
|
this.shapes = shapes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NTMMaterial omit() {
|
||||||
|
this.omitItemGen = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NTMMaterial smeltable() {
|
||||||
|
this.smeltable = true;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user