mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-11 12:15:35 +00:00
hopefully all fluid impls done outside of the rbmk stuff Also implemented copy pasting of molten metals, copying from anything that holds molten metal, and pasting into outlets for filters
33 lines
1.0 KiB
Java
33 lines
1.0 KiB
Java
package com.hbm.tileentity;
|
|
|
|
import com.hbm.interfaces.ICopiable;
|
|
import com.hbm.inventory.material.Mats;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import net.minecraft.world.World;
|
|
|
|
public interface IMetalCopiable extends ICopiable {
|
|
int[] getMatsToCopy();
|
|
|
|
@Override
|
|
default NBTTagCompound getSettings(World world, int x, int y, int z){
|
|
NBTTagCompound tag = new NBTTagCompound();
|
|
if(getMatsToCopy().length > 0)
|
|
tag.setIntArray("matFilter", getMatsToCopy());
|
|
return tag;
|
|
}
|
|
@Override
|
|
default String[] infoForDisplay(World world, int x, int y, int z) {
|
|
int[] ids = getMatsToCopy();
|
|
String[] names = new String[ids.length];
|
|
for (int i = 0; i < ids.length; i++) {
|
|
names[i] = Mats.matById.get(ids[i]).getUnlocalizedName();
|
|
}
|
|
return names;
|
|
}
|
|
@Override
|
|
default void pasteSettings(NBTTagCompound nbt, int index, World world, EntityPlayer player, int x, int y, int z){
|
|
|
|
};
|
|
}
|