mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
30 lines
931 B
Java
30 lines
931 B
Java
package com.hbm.interfaces;
|
|
|
|
import com.hbm.util.Either;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
|
|
public interface ICopiable {
|
|
|
|
NBTTagCompound getSettings(World world, int x, int y, int z);
|
|
|
|
void pasteSettings(NBTTagCompound nbt, int index, World world, EntityPlayer player, int x, int y, int z);
|
|
|
|
default String getSettingsSourceID(Either<TileEntity, Block> self) {
|
|
Block block = self.isLeft() ? self.left().getBlockType() : self.right();
|
|
return block.getUnlocalizedName();
|
|
}
|
|
|
|
default String getSettingsSourceDisplay(Either<TileEntity, Block> self) {
|
|
Block block = self.isLeft() ? self.left().getBlockType() : self.right();
|
|
return block.getLocalizedName();
|
|
}
|
|
|
|
default String[] infoForDisplay(World world, int x, int y, int z){
|
|
return null;
|
|
}
|
|
}
|