gpt4 book ai didi

stanhebben.zenscript.annotations.ZenMethod类的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 18:26:49 27 4
gpt4 key购买 nike

本文整理了Java中stanhebben.zenscript.annotations.ZenMethod类的一些代码示例,展示了ZenMethod类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZenMethod类的具体详情如下:
包路径:stanhebben.zenscript.annotations.ZenMethod
类名称:ZenMethod

ZenMethod介绍

暂无

代码示例

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneItem( IIngredient itemStack )
{
  attune( itemStack, TunnelType.ITEM );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneRedstone( String modId )
{
  attune( modId, TunnelType.REDSTONE );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneIC2( String modId )
{
  attune( modId, TunnelType.IC2_POWER );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneLight( IIngredient itemStack )
{
  attune( itemStack, TunnelType.LIGHT );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneRedstone( IIngredient itemStack )
{
  attune( itemStack, TunnelType.REDSTONE );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneRF( String modId )
{
  attune( modId, TunnelType.FE_POWER );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneME( IIngredient itemStack )
{
  attune( itemStack, TunnelType.ME );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneFluid( IIngredient itemStack )
{
  attune( itemStack, TunnelType.FLUID );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneFluid( String modId )
{
  attune( modId, TunnelType.FLUID );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneIC2( IIngredient itemStack )
{
  attune( itemStack, TunnelType.IC2_POWER );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneRF( IIngredient itemStack )
{
  attune( itemStack, TunnelType.FE_POWER );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneME( String modId )
{
  attune( modId, TunnelType.ME );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneItem( String modId )
{
  attune( modId, TunnelType.ITEM );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void attuneLight( String modId )
{
  attune( modId, TunnelType.LIGHT );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void removeRecipe( IIngredient input )
{
  for( ItemStack inStack : CTModule.toStacks( input ).orElse( Collections.emptySet() ) )
  {
    CTModule.MODIFICATIONS.add( new Remove( inStack ) );
  }
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void removeRecipe( IItemStack output )
{
  CTModule.MODIFICATIONS.add( new Remove( (ItemStack) output.getInternal() ) );
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
  public static void registerAmmo( IIngredient itemStack, double weight )
  {
    IMatterCannonAmmoRegistry registry = AEApi.instance().registries().matterCannon();
    CTModule.toStacks( itemStack ).ifPresent( c -> c.forEach( i -> registry.registerAmmo( i, weight ) ) );
  }
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void whitelistEntity( String entityClassName )
{
  Class<? extends TileEntity> entityClass = loadClass( entityClassName );
  if( entityClass != null )
  {
    AEApi.instance().registries().movable().whiteListTileEntity( entityClass );
  }
}

代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2

@ZenMethod
public static void addRecipe( IItemStack output, IIngredient input, boolean inscribe, @stanhebben.zenscript.annotations.Optional IIngredient top, @stanhebben.zenscript.annotations.Optional IIngredient bottom )
{
  Optional<Collection<ItemStack>> inStacks = CTModule.toStacks( input );
  if( !inStacks.isPresent() )
  {
    return;
  }
  Collection<ItemStack> topList = CTModule.toStacks( top ).orElse( Collections.singleton( ItemStack.EMPTY ) );
  Collection<ItemStack> bottomList = CTModule.toStacks( bottom ).orElse( Collections.singleton( ItemStack.EMPTY ) );
  for( ItemStack topStack : topList )
  {
    for( ItemStack bottomStack : bottomList )
    {
      final IInscriberRecipeBuilder builder = AEApi.instance().registries().inscriber().builder();
      builder.withProcessType( inscribe ? InscriberProcessType.INSCRIBE : InscriberProcessType.PRESS )
          .withOutput( CTModule.toStack( output ) )
          .withInputs( inStacks.get() );
      if( !topStack.isEmpty() )
      {
        builder.withTopOptional( topStack );
      }
      if( !bottomStack.isEmpty() )
      {
        builder.withBottomOptional( bottomStack );
      }
      CTModule.MODIFICATIONS.add( new Add( builder.build() ) );
    }
  }
}

代码示例来源:origin: GregTechCE/GregTech

@ZenMethod
public PBFRecipeBuilder duration(int duration) {
  this.duration = duration;
  return this;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com