Java Code Examples for mezz.jei.api.IGuiHelper#createDrawable()

The following examples show how to use mezz.jei.api.IGuiHelper#createDrawable() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OreByProductCategory.java    From GregTech with GNU Lesser General Public License v3.0 5 votes vote down vote up
public OreByProductCategory(IGuiHelper guiHelper) {
	super("ore_by_product", 
			"recipemap.byproductlist.name", 
			guiHelper.createBlankDrawable(176, 166), 
			guiHelper);

	this.slot = guiHelper.createDrawable(GuiTextures.SLOT.imageLocation, 0, 0, 18, 18, 18, 18);
	this.arrowBackground = guiHelper.createDrawable(GuiTextures.PROGRESS_BAR_ARROW.imageLocation, 0, 0, 20, 20, 20, 40);
	this.arrowForeground = guiHelper.createDrawable(GuiTextures.PROGRESS_BAR_ARROW.imageLocation, 0, 20, 20, 20, 20, 40);
	this.arrowAnimation = guiHelper.createAnimatedDrawable(arrowForeground, 30, StartDirection.LEFT, false);
}
 
Example 2
Source File: GTJeiMultiRecipeCategory.java    From GT-Classic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public GTJeiMultiRecipeCategory(IGuiHelper helper, String name, Block block) {
	this.name = name;
	displayName = new ItemStack(block).getDisplayName().replace(" Controller", "");
	backgroundTexture = new ResourceLocation(GTMod.MODID, "textures/gui/default.png");
	background = helper.createDrawable(backgroundTexture, 16, 16, 144, getHeight());
	IDrawableStatic progressPic = helper.createDrawable(backgroundTexture, 176, 0, 20, 18);
	progress = helper.createAnimatedDrawable(progressPic, 150, IDrawableAnimated.StartDirection.LEFT, false);
}
 
Example 3
Source File: BaseRecipeCategory.java    From customstuff4 with GNU General Public License v3.0 5 votes vote down vote up
protected BaseRecipeCategory(R recipe, IGuiHelper guiHelper, Class<M> moduleClass)
{
    this.recipe = recipe;

    uid = recipe.getUid();
    title = recipe.title;
    gui = recipe.getGui();
    tileEntity = TileEntityRegistry.getContent(recipe.tileEntity);

    Pair<String, M> pair = getModule(moduleClass);
    this.moduleName = pair.getLeft();
    this.module = pair.getRight();

    background = guiHelper.createDrawable(gui.bg, recipe.bgX, recipe.bgY, recipe.bgWidth, recipe.bgHeight);
}
 
Example 4
Source File: GTJeiMagicFuelCategory.java    From GT-Classic with GNU Lesser General Public License v3.0 5 votes vote down vote up
public GTJeiMagicFuelCategory(IGuiHelper helper, String name, Block block) {
	this.name = name;
	displayName = "Magic Fuel";
	backgroundTexture = new ResourceLocation(GTMod.MODID, "textures/gui/default.png");
	background = helper.createDrawable(backgroundTexture, 16, 16, 144, getHeight());
	IDrawableStatic progressPic = helper.createDrawable(backgroundTexture, 176, 0, 20, 18);
	progress = helper.createAnimatedDrawable(progressPic, 150, IDrawableAnimated.StartDirection.LEFT, false);
}
 
Example 5
Source File: ScaffolderCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public ScaffolderCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.SCAFFOLDER_NAME;
}
 
Example 6
Source File: AlgaeBioreactorCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public AlgaeBioreactorCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.ALGAEBIOREACTOR_NAME;
}
 
Example 7
Source File: CookerCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public CookerCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.COOKER_NAME;
}
 
Example 8
Source File: InjectorCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public InjectorCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.INJECTOR_NAME;
}
 
Example 9
Source File: CustomRecipeCategory.java    From YouTubeModdingTutorial with MIT License 4 votes vote down vote up
public CustomRecipeCategory(IGuiHelper guiHelper) {
    ResourceLocation location = new ResourceLocation(MyMod.MODID, "textures/gui/fast_furnace.png");
    background = guiHelper.createDrawable(location, 3, 18, 170, 30);
}
 
Example 10
Source File: MachineCategoryTemplate.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
public MachineCategoryTemplate(IGuiHelper helper, ProgressBarImage bar) {
	//drawTexturedModalRect(3,3, 7, 16, 163, 55);
	background = helper.createDrawable(new ResourceLocation("advancedrocketry:textures/gui/GenericNeiBackground.png"), 7, 16, 163, 55 ); //helper.createDrawable(bar.getResourceLocation(), bar.getBackOffsetX(),
			//bar.getBackOffsetY(), bar.getBackWidth(), bar.getBackHeight());
	this.bar = bar;
}
 
Example 11
Source File: FluidOnTopRecipeCategory.java    From ExNihiloAdscensio with MIT License 4 votes vote down vote up
public FluidOnTopRecipeCategory(IGuiHelper helper)
{
    this.background = helper.createDrawable(texture, 0, 0, 166, 63);
}
 
Example 12
Source File: BioreactorCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public BioreactorCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.BIOREACTOR_NAME;
}
 
Example 13
Source File: JEICrusherRecipeCategory.java    From BaseMetals with GNU Lesser General Public License v2.1 4 votes vote down vote up
public JEICrusherRecipeCategory(IGuiHelper guiHelper){
	background = guiHelper.createDrawable(bgtex, 24,26, 128,32);
}
 
Example 14
Source File: FluidBlockTransformRecipeCategory.java    From ExNihiloAdscensio with MIT License 4 votes vote down vote up
public FluidBlockTransformRecipeCategory(IGuiHelper helper)
{
    this.background = helper.createDrawable(texture, 0, 0, 166, 63);
}
 
Example 15
Source File: ScrubberCategory.java    From EmergingTechnology with MIT License 4 votes vote down vote up
public ScrubberCategory(IGuiHelper guiHelper) {
    background = guiHelper.createDrawable(TEXTURE, 0, 0, xSize, ySize);
    localizedName = MachineReference.SCRUBBER_NAME;
}
 
Example 16
Source File: FloadRecipeCategory.java    From YouTubeModdingTutorial with MIT License 4 votes vote down vote up
public FloadRecipeCategory(IGuiHelper guiHelper) {
    ResourceLocation location = new ResourceLocation(MyMod.MODID, "textures/gui/floader.png");
    background = guiHelper.createDrawable(location, 3, 18, 90, 30);
}
 
Example 17
Source File: SieveRecipeCategory.java    From ExNihiloAdscensio with MIT License 4 votes vote down vote up
public SieveRecipeCategory(IGuiHelper helper)
{
    this.background = helper.createDrawable(texture, 0, 0, 166, 128);
    this.slotHighlight = helper.createDrawable(texture, 166, 0, 18, 18);
}
 
Example 18
Source File: CategoryL2IS.java    From Sakura_mod with MIT License 4 votes vote down vote up
public CategoryL2IS(IGuiHelper helper) {
	  ResourceLocation backgroundTexture = new ResourceLocation(SakuraMain.MODID+":textures/gui/jei_compat.png");
	  this.icon = helper.createDrawableIngredient(new ItemStack(Items.BUCKET));
	  this.background = helper.createDrawable(backgroundTexture, 101, 0, 93, 80);
}
 
Example 19
Source File: CategoryAggregator.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public CategoryAggregator(IGuiHelper helper) {
	  ResourceLocation backgroundTexture = new ResourceLocation(TofuMain.MODID+":textures/gui/jei_gui.png");
	  this.icon = helper.createDrawableIngredient(new ItemStack(BlockLoader.TFAGGREGATOR));
	  this.background = helper.createDrawable(backgroundTexture, 0, 0, 96, 26);
}
 
Example 20
Source File: CategoryCrusher.java    From TofuCraftReload with MIT License 4 votes vote down vote up
public CategoryCrusher(IGuiHelper helper) {
	  ResourceLocation backgroundTexture = new ResourceLocation(TofuMain.MODID+":textures/gui/jei_gui.png");
	  this.icon = helper.createDrawableIngredient(new ItemStack(BlockLoader.TFCRASHER));
	  this.background = helper.createDrawable(backgroundTexture, 0, 0, 96, 26);
}