• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java IDrawableAnimated类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中mezz.jei.api.gui.IDrawableAnimated的典型用法代码示例。如果您正苦于以下问题:Java IDrawableAnimated类的具体用法?Java IDrawableAnimated怎么用?Java IDrawableAnimated使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IDrawableAnimated类属于mezz.jei.api.gui包,在下文中一共展示了IDrawableAnimated类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: DNASampleCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public DNASampleCategory(IGuiHelper guiHelper) {
		localizedName = Lang.localize("jei.dnasample.category");
ResourceLocation backgroundLocation = new ResourceLocation("crystalmod", "textures/gui/machine/dnamachine.png");
   background = guiHelper.createDrawable(backgroundLocation, 52, 10, 72, 45);

   ResourceLocation overlay = new ResourceLocation("crystalmod", "textures/gui/elements/progress_arrow_right.png");
   IDrawableStatic arrowDrawable = guiHelper.createDrawable(overlay, 24, 0, 24, 16, 48, 16);
this.arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
	}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:10,代码来源:DNASampleCategory.java


示例2: PressRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public PressRecipeCategory(IGuiHelper guiHelper) {
   ResourceLocation backgroundLocation = new ResourceLocation("crystalmod", "textures/gui/machine/press.png");
   background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 125, 50);

   IDrawableStatic arrowDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 24, 17);
this.arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
	}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:8,代码来源:PressRecipeCategory.java


示例3: InfuserRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public InfuserRecipeCategory(IGuiHelper guiHelper) {
   ResourceLocation backgroundLocation = new ResourceLocation("crystalmod", "textures/gui/machine/infuser.png");
   background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 125, 50);

   IDrawableStatic arrowDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 24, 17);
this.arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
IDrawableStatic arrowDrawable2 = guiHelper.createDrawable(backgroundLocation, 176, 17, 24, 34);
this.arrow2 = guiHelper.createAnimatedDrawable(arrowDrawable2, 200, IDrawableAnimated.StartDirection.RIGHT, false);
	}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:10,代码来源:InfuserRecipeCategory.java


示例4: LiquidizerRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public LiquidizerRecipeCategory(IGuiHelper guiHelper) {
   ResourceLocation backgroundLocation = new ResourceLocation("crystalmod", "textures/gui/machine/liquidizer.png");
   background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 125, 50);

   ResourceLocation arrow = new ResourceLocation("crystalmod", "textures/gui/machine/press.png");
   IDrawableStatic arrowDrawable = guiHelper.createDrawable(arrow, 176, 0, 24, 17);
this.arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
	}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:9,代码来源:LiquidizerRecipeCategory.java


示例5: GrinderRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public GrinderRecipeCategory(IGuiHelper guiHelper) {
   ResourceLocation backgroundLocation = new ResourceLocation("crystalmod", "textures/gui/machine/grinder.png");
   background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 125, 50);

   IDrawableStatic arrowDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 24, 17);
this.arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
	}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:8,代码来源:GrinderRecipeCategory.java


示例6: EnchanterRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public EnchanterRecipeCategory(IGuiHelper guiHelper)
{
	this.guiHelper = guiHelper;

	this.flame = guiHelper.createAnimatedDrawable(guiHelper.createDrawable(altar, 176, 0, 14, 14), 300, IDrawableAnimated.StartDirection.TOP, true);
	this.arrow = guiHelper.createAnimatedDrawable(guiHelper.createDrawable(altar, 176, 14, 24, 17), 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:Modding-Legacy,项目名称:Aether-Legacy,代码行数:8,代码来源:EnchanterRecipeCategory.java


示例7: FreezerRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public FreezerRecipeCategory(IGuiHelper guiHelper)
{
	this.guiHelper = guiHelper;

	this.flame = guiHelper.createAnimatedDrawable(guiHelper.createDrawable(altar, 176, 0, 14, 14), 300, IDrawableAnimated.StartDirection.TOP, true);
	this.arrow = guiHelper.createAnimatedDrawable(guiHelper.createDrawable(altar, 176, 14, 24, 17), 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:Modding-Legacy,项目名称:Aether-Legacy,代码行数:8,代码来源:FreezerRecipeCategory.java


示例8: QBarJEIRecipeWrapper

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
QBarJEIRecipeWrapper(final QBarRecipe recipe, IGuiHelper guiHelper, ResourceLocation background, int u, int v, int width, int height)
{
    this.recipe = recipe;

    final IDrawableStatic arrowStatic = guiHelper.createDrawable(background, u, v, width, height);
    this.arrow = guiHelper.createAnimatedDrawable(arrowStatic, 20, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:OPMCorp,项目名称:Qbar,代码行数:8,代码来源:QBarJEIRecipeWrapper.java


示例9: GeoCompostCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public GeoCompostCategory() {
    
    this.background = GeoJei.guiHelper.createDrawable(BG_RES,
            BG_X, BG_Y, BG_WIDTH, BG_HEIGHT);
    IDrawableStatic fill = GeoJei.guiHelper.createDrawable(BG_RES,
            ANIM_ORIG_X, FILL_ORIG_Y, FILL_WIDTH, FILL_HEIGHT);
    this.fill = GeoJei.guiHelper.createAnimatedDrawable(fill,
            FILL_TICKS, IDrawableAnimated.StartDirection.BOTTOM, false);
    IDrawableStatic arrow = GeoJei.guiHelper.createDrawable(BG_RES,
            ANIM_ORIG_X, ARROW_ORIG_Y, ARROW_WIDTH, ARROW_HEIGHT);
    this.arrow = GeoJei.guiHelper.createAnimatedDrawable(arrow,
            ARROW_TICKS, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:14,代码来源:GeoCompostCategory.java


示例10: GeoDryingCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public GeoDryingCategory() {
    
    this.background = GeoJei.guiHelper.createDrawable(BG_RES, 
            BG_X, BG_Y, BG_WIDTH, BG_HEIGHT);
    IDrawableStatic arrow = GeoJei.guiHelper.createDrawable(BG_RES, 
            ARROW_ORIG_X, ARROW_ORIG_Y, ARROW_WIDTH, ARROW_HEIGHT);
    this.arrow = GeoJei.guiHelper.createAnimatedDrawable(arrow,
            ARROW_TICKS, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:10,代码来源:GeoDryingCategory.java


示例11: GeoFuelCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public GeoFuelCategory() {
    
    this.background = GeoJei.guiHelper.createDrawable(BG_RES,
            BG_X, BG_Y, BG_WIDTH, BG_HEIGHT,
            PAD_ALL, PAD_ALL, PAD_ALL, PAD_RIGHT);
    this.icon = GeoJei.guiHelper.createDrawable(BG_RES,
            FLAME_ORIG_X, FLAME_ORIG_Y, FLAME_SIZE, FLAME_SIZE);
    this.flame = GeoJei.guiHelper.createAnimatedDrawable(this.icon,
            FLAME_TICKS, IDrawableAnimated.StartDirection.TOP, true);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:11,代码来源:GeoFuelCategory.java


示例12: GeoCookingCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public GeoCookingCategory() {
    
    this.background = GeoJei.guiHelper.createDrawable(BG_RES, 
            BG_X, BG_Y, BG_WIDTH, BG_HEIGHT);
    IDrawableStatic flame = GeoJei.guiHelper.createDrawable(BG_RES,
            ANIM_ORIG_X, FLAME_ORIG_Y, FLAME_SIZE, FLAME_SIZE);
    this.flame = GeoJei.guiHelper.createAnimatedDrawable(flame, FLAME_TICKS,
            IDrawableAnimated.StartDirection.TOP, true);
    IDrawableStatic arrow = GeoJei.guiHelper.createDrawable(BG_RES,
            ANIM_ORIG_X, ARROW_ORIG_Y, ARROW_WIDTH, ARROW_HEIGHT);
    this.arrow = GeoJei.guiHelper.createAnimatedDrawable(arrow, ARROW_TICKS,
            IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:14,代码来源:GeoCookingCategory.java


示例13: LightningCrusherRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public LightningCrusherRecipeCategory(IGuiHelper guiHelper) {
	background = guiHelper.createDrawable(location, 55, 16, 82, 54);
	IDrawableStatic flameDrawable = guiHelper.createDrawable(location, 176, 0, 14, 14);
	flame = guiHelper.createAnimatedDrawable(flameDrawable, TileEntityLightningCrusher.burnTime, IDrawableAnimated.StartDirection.TOP, true);
	IDrawableStatic arrowDrawable = guiHelper.createDrawable(location, 176, 14, 24, 17);
	arrow = guiHelper.createAnimatedDrawable(arrowDrawable, TileEntityLightningCrusher.burnTime / 2, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:sblectric,项目名称:LightningCraft,代码行数:8,代码来源:LightningCrusherRecipeCategory.java


示例14: TransmutatorRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public TransmutatorRecipeCategory(IGuiHelper guiHelper) {
	backgroundLocation = new ResourceLocation("abyssalcraft", "textures/gui/container/transmutator_NEI.png");

	IDrawableStatic flameDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 13, 13);
	flame = guiHelper.createAnimatedDrawable(flameDrawable, 300, IDrawableAnimated.StartDirection.TOP, true);

	IDrawableStatic arrowDrawable = guiHelper.createDrawable(backgroundLocation, 176, 14, 24, 17);
	arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:10,代码来源:TransmutatorRecipeCategory.java


示例15: TransmutatorFuelRecipe

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public TransmutatorFuelRecipe(@Nonnull IGuiHelper guiHelper, @Nonnull Collection<ItemStack> input, int burnTime) {
	List<ItemStack> inputList = new ArrayList<>(input);
	inputs = Collections.singletonList(inputList);
	burnTimeString = I18n.translateToLocalFormatted("gui.jei.category.fuel.burnTime", burnTime);

	ResourceLocation furnaceBackgroundLocation = new ResourceLocation("abyssalcraft", "textures/gui/container/transmutator_NEI.png");
	IDrawableStatic flameDrawable = guiHelper.createDrawable(furnaceBackgroundLocation, 176, 0, 14, 14);
	flame = guiHelper.createAnimatedDrawable(flameDrawable, burnTime, IDrawableAnimated.StartDirection.TOP, true);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:10,代码来源:TransmutatorFuelRecipe.java


示例16: CrystallizerFuelRecipe

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public CrystallizerFuelRecipe(@Nonnull IGuiHelper guiHelper, @Nonnull Collection<ItemStack> input, int burnTime) {
	List<ItemStack> inputList = new ArrayList<>(input);
	inputs = Collections.singletonList(inputList);
	burnTimeString = I18n.translateToLocalFormatted("gui.jei.category.fuel.burnTime", burnTime);

	ResourceLocation furnaceBackgroundLocation = new ResourceLocation("abyssalcraft", "textures/gui/container/crystallizer_NEI.png");
	IDrawableStatic flameDrawable = guiHelper.createDrawable(furnaceBackgroundLocation, 176, 0, 14, 14);
	flame = guiHelper.createAnimatedDrawable(flameDrawable, burnTime, IDrawableAnimated.StartDirection.TOP, true);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:10,代码来源:CrystallizerFuelRecipe.java


示例17: CrystallizerRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public CrystallizerRecipeCategory(IGuiHelper guiHelper) {
	backgroundLocation = new ResourceLocation("abyssalcraft", "textures/gui/container/crystallizer_NEI.png");

	IDrawableStatic flameDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 14, 14);
	flame = guiHelper.createAnimatedDrawable(flameDrawable, 300, IDrawableAnimated.StartDirection.TOP, true);

	IDrawableStatic arrowDrawable = guiHelper.createDrawable(backgroundLocation, 176, 14, 24, 17);
	arrow = guiHelper.createAnimatedDrawable(arrowDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:10,代码来源:CrystallizerRecipeCategory.java


示例18: SagMillRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public SagMillRecipeCategory(IGuiHelper guiHelper) {
  ResourceLocation backgroundLocation = EnderIO.proxy.getGuiTexture("crusher");
  background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 109, 78);

  IDrawableStatic flameDrawable = guiHelper.createDrawable(backgroundLocation, 201, 1, 16, 22);
  arrow = guiHelper.createAnimatedDrawable(flameDrawable, 200, IDrawableAnimated.StartDirection.TOP, false);
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:8,代码来源:SagMillRecipeCategory.java


示例19: PainterRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public PainterRecipeCategory(IJeiHelpers jeiHelpers) {
  stackHelper = jeiHelpers.getStackHelper();
  IGuiHelper guiHelper = jeiHelpers.getGuiHelper();

  ResourceLocation backgroundLocation = EnderIO.proxy.getGuiTexture("painter");
  background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 120, 50);

  IDrawableStatic flameDrawable = guiHelper.createDrawable(backgroundLocation, 176, 14, 24, 16);
  arrow = guiHelper.createAnimatedDrawable(flameDrawable, 200, IDrawableAnimated.StartDirection.LEFT, false);
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:11,代码来源:PainterRecipeCategory.java


示例20: AlloyRecipeCategory

import mezz.jei.api.gui.IDrawableAnimated; //导入依赖的package包/类
public AlloyRecipeCategory(IGuiHelper guiHelper) {
  ResourceLocation backgroundLocation = EnderIO.proxy.getGuiTexture("alloy_smelter");
  background = guiHelper.createDrawable(backgroundLocation, xOff, yOff, 82, 78);

  IDrawableStatic flameDrawable = guiHelper.createDrawable(backgroundLocation, 176, 0, 13, 13);
  flame = guiHelper.createAnimatedDrawable(flameDrawable, 200, IDrawableAnimated.StartDirection.BOTTOM, false);
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:8,代码来源:AlloyRecipeCategory.java



注:本文中的mezz.jei.api.gui.IDrawableAnimated类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java XeDirectives类代码示例发布时间:2022-05-23
下一篇:
Java AdditionalMeasureProducer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap