Add tooltip for ore generation depths.

Will only work in SP for now, will need to create a packet to send the data from the server.
This commit is contained in:
modmuss50 2021-11-28 14:14:35 +00:00
parent 5ce0881f56
commit 27c684d376
4 changed files with 87 additions and 5 deletions
src/main/java/techreborn/init

View file

@ -432,10 +432,14 @@ public class TRContent {
return block.asItem();
}
public TRContent.Ores getDeeplate() {
Preconditions.checkArgument(!name.startsWith("deepslate_"));
public TRContent.Ores getDeepslate() {
Preconditions.checkArgument(!isDeepslate());
return deepslateMap.get(this);
}
public boolean isDeepslate() {
return name.startsWith("deepslate_");
}
}
public enum StorageBlocks implements ItemConvertible {