Attempt to fix 1.16.3 branch's issues on the repository
Added the original 'wayoftime' folder back, so see if that fixed the multiple folder issue.
This commit is contained in:
parent
6b4145a67c
commit
9fa68e86ae
224 changed files with 24047 additions and 0 deletions
29
src/main/java/wayoftime/bloodmagic/altar/AltarUpgrade.java
Normal file
29
src/main/java/wayoftime/bloodmagic/altar/AltarUpgrade.java
Normal file
|
@ -0,0 +1,29 @@
|
|||
package wayoftime.bloodmagic.altar;
|
||||
|
||||
import java.util.EnumMap;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import wayoftime.bloodmagic.block.enums.BloodRuneType;
|
||||
|
||||
public class AltarUpgrade
|
||||
{
|
||||
|
||||
private final EnumMap<BloodRuneType, Integer> upgradeLevels;
|
||||
|
||||
public AltarUpgrade()
|
||||
{
|
||||
this.upgradeLevels = Maps.newEnumMap(BloodRuneType.class);
|
||||
}
|
||||
|
||||
public AltarUpgrade upgrade(BloodRuneType rune)
|
||||
{
|
||||
upgradeLevels.compute(rune, (r, l) -> l == null ? 1 : l + 1);
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getLevel(BloodRuneType rune)
|
||||
{
|
||||
return upgradeLevels.getOrDefault(rune, 0);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue