2020-08-03 17:50:13 +00:00
|
|
|
package com.thebrokenrail.energonrelics.client.rei.reactor;
|
2020-07-30 19:49:18 +00:00
|
|
|
|
2020-08-03 17:50:13 +00:00
|
|
|
import com.thebrokenrail.energonrelics.client.rei.EnergonRelicsPlugin;
|
2020-07-30 19:49:18 +00:00
|
|
|
import me.shedaniel.rei.api.EntryStack;
|
|
|
|
import me.shedaniel.rei.api.RecipeDisplay;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
|
|
import net.fabricmc.api.Environment;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.Identifier;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@Environment(EnvType.CLIENT)
|
2020-08-03 17:50:13 +00:00
|
|
|
public class ReactorFuelDisplay implements RecipeDisplay {
|
2020-07-30 19:49:18 +00:00
|
|
|
private final EntryStack input;
|
2020-08-03 17:50:13 +00:00
|
|
|
public final float multiplier;
|
2020-07-30 19:49:18 +00:00
|
|
|
|
2020-08-03 17:50:13 +00:00
|
|
|
public ReactorFuelDisplay(ItemStack input, float multiplier) {
|
2020-07-30 19:49:18 +00:00
|
|
|
this.input = EntryStack.create(input);
|
2020-08-03 17:50:13 +00:00
|
|
|
this.multiplier = multiplier;
|
2020-07-30 19:49:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<List<EntryStack>> getInputEntries() {
|
|
|
|
return Collections.singletonList(Collections.singletonList(input));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<EntryStack> getOutputEntries() {
|
2020-08-03 17:50:13 +00:00
|
|
|
return Collections.emptyList();
|
2020-07-30 19:49:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Identifier getRecipeCategory() {
|
2020-08-03 17:50:13 +00:00
|
|
|
return EnergonRelicsPlugin.REACTOR_FUEL;
|
2020-07-30 19:49:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<List<EntryStack>> getRequiredEntries() {
|
|
|
|
return getInputEntries();
|
|
|
|
}
|
|
|
|
}
|