mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-20 12:29:50 +00:00
Begin chisel mode implementation
This commit is contained in:
1 parent
86713ab449
commit
89299f6e27
8 files changed
+141
-33
No files matched your search
@@ -24,6 +24,18 @@ public class Carving {
|
||||
private Carving() {
|
||||
}
|
||||
|
||||
public ICarvingVariation getVariation(Block block, int metadata) {
|
||||
ICarvingGroup g = getGroup(block, metadata);
|
||||
if (g != null) {
|
||||
for (ICarvingVariation v : g.getVariations()) {
|
||||
if (v.getBlock() == block && v.getBlockMeta() == metadata) {
|
||||
return v;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<ICarvingVariation> getVariations(Block block, int metadata) {
|
||||
ICarvingGroup group = getGroup(block, metadata);
|
||||
if (group == null)
|
||||
|
||||
Reference in new issue
Block a user