Basic Dynamic cell rendering

This commit is contained in:
modmuss50 2019-07-24 01:37:05 +01:00
parent fb2a5a15b9
commit 8964c5aceb
16 changed files with 241 additions and 45 deletions

View file

@ -27,12 +27,14 @@ package techreborn.utils;
import io.github.prospector.silk.fluid.FluidInstance;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.registry.Registry;
import reborncore.common.util.RebornInventory;
import reborncore.common.util.Tank;
import net.minecraft.fluid.Fluid;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public class FluidUtils {
@ -41,7 +43,7 @@ public class FluidUtils {
}
public static List<Fluid> getAllFluids() {
return Collections.emptyList();
return Registry.FLUID.stream().collect(Collectors.toList());
}
public static Fluid getFluid(String name){

View file

@ -25,13 +25,13 @@
package techreborn.utils;
import net.minecraft.item.ItemStack;
import techreborn.items.DynamicCell;
import techreborn.items.ItemDynamicCell;
import javax.annotation.Nonnull;
public class RecipeUtils {
@Nonnull
public static ItemStack getEmptyCell(int stackSize) {
return DynamicCell.getEmptyCell(stackSize);
return ItemDynamicCell.getEmptyCell(stackSize);
}
}