blast furnace: remove unused BarOres map
This commit is contained in:
@@ -24,13 +24,14 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.client.plugins.blastfurnace;
|
package net.runelite.client.plugins.blastfurnace;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
import lombok.AllArgsConstructor;
|
||||||
import java.util.Map;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import net.runelite.api.ItemID;
|
import net.runelite.api.ItemID;
|
||||||
import net.runelite.api.Varbits;
|
import net.runelite.api.Varbits;
|
||||||
|
|
||||||
public enum BarsOres
|
@AllArgsConstructor
|
||||||
|
@Getter
|
||||||
|
enum BarsOres
|
||||||
{
|
{
|
||||||
COPPER_ORE(Varbits.BLAST_FURNACE_COPPER_ORE, ItemID.COPPER_ORE),
|
COPPER_ORE(Varbits.BLAST_FURNACE_COPPER_ORE, ItemID.COPPER_ORE),
|
||||||
TIN_ORE(Varbits.BLAST_FURNACE_TIN_ORE, ItemID.TIN_ORE),
|
TIN_ORE(Varbits.BLAST_FURNACE_TIN_ORE, ItemID.TIN_ORE),
|
||||||
@@ -50,33 +51,6 @@ public enum BarsOres
|
|||||||
SILVER_BAR(Varbits.BLAST_FURNACE_SILVER_BAR, ItemID.SILVER_BAR),
|
SILVER_BAR(Varbits.BLAST_FURNACE_SILVER_BAR, ItemID.SILVER_BAR),
|
||||||
GOLD_BAR(Varbits.BLAST_FURNACE_GOLD_BAR, ItemID.GOLD_BAR);
|
GOLD_BAR(Varbits.BLAST_FURNACE_GOLD_BAR, ItemID.GOLD_BAR);
|
||||||
|
|
||||||
private static final Map<Varbits, BarsOres> VARBIT;
|
|
||||||
|
|
||||||
static
|
|
||||||
{
|
|
||||||
ImmutableMap.Builder<Varbits, BarsOres> builder = new ImmutableMap.Builder<>();
|
|
||||||
|
|
||||||
for (BarsOres s : values())
|
|
||||||
{
|
|
||||||
builder.put(s.getVarbit(), s);
|
|
||||||
}
|
|
||||||
|
|
||||||
VARBIT = builder.build();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Getter
|
|
||||||
private final Varbits varbit;
|
private final Varbits varbit;
|
||||||
@Getter
|
|
||||||
private final int itemID;
|
private final int itemID;
|
||||||
|
|
||||||
BarsOres(Varbits varbit, int itemID)
|
|
||||||
{
|
|
||||||
this.varbit = varbit;
|
|
||||||
this.itemID = itemID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static BarsOres getVarbit(Varbits varbit)
|
|
||||||
{
|
|
||||||
return VARBIT.get(varbit);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user