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:
WayofTime 2020-10-29 15:50:03 -04:00
parent 6b4145a67c
commit 9fa68e86ae
224 changed files with 24047 additions and 0 deletions

View 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);
}
}