Basic Dynamic cell rendering
This commit is contained in:
parent
fb2a5a15b9
commit
8964c5aceb
16 changed files with 241 additions and 45 deletions
|
@ -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){
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue