Update
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-04 14:15:24 -04:00
parent 808b61b9e9
commit b188cacee1
4 changed files with 14 additions and 3 deletions

View File

@ -57,7 +57,7 @@ import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.OreFeatureConfig;
public class EnergonRelics implements ModInitializer {
public final class EnergonRelics implements ModInitializer {
public static final String NAMESPACE = "energonrelics";
public static NetworkChipItem NETWORK_CHIP_ITEM;

View File

@ -3,7 +3,10 @@ package com.thebrokenrail.energonrelics.config;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
public class HardcodedConfig {
/**
* Hardcoded Configuration Values
*/
public final class HardcodedConfig {
public static final int POWER_RANGE = 64;
public static final int ENERGON_LIGHT_ENERGY_REQUIRED = 5;

View File

@ -20,7 +20,7 @@ import java.util.Set;
/**
* Infuser Registry
*/
public class InfuserRegistry {
public final class InfuserRegistry {
private static final Map<Item, InfuserEntry> map = new HashMap<>();
/**
@ -41,6 +41,10 @@ public class InfuserRegistry {
map.put(item, entry);
}
/**
* Get Entry Set
* @return Entry Set
*/
public static Set<Map.Entry<Item, InfuserEntry>> entrySet() {
return map.entrySet();
}

View File

@ -33,6 +33,10 @@ public final class ReactorFuelRegistry {
return map.getOrDefault(item, 0f);
}
/**
* Get Entry Set (Client-Only)
* @return Entry Set
*/
@Environment(EnvType.CLIENT)
public static Set<Map.Entry<Item, Float>> entrySet() {
return map.entrySet();