- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中stanhebben.zenscript.annotations.ZenMethod
类的一些代码示例,展示了ZenMethod
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZenMethod
类的具体详情如下:
包路径:stanhebben.zenscript.annotations.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;
}
本文整理了Java中stanhebben.zenscript.annotations.ZenMethod类的一些代码示例,展示了ZenMethod类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中stanhebben.zenscript.annotations.ZenClass类的一些代码示例,展示了ZenClass类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中stanhebben.zenscript.annotations.ZenMethod.()方法的一些代码示例,展示了ZenMethod.()的具体用法。这些代码示例主要来源于Git
本文整理了Java中stanhebben.zenscript.annotations.ZenClass.()方法的一些代码示例,展示了ZenClass.()的具体用法。这些代码示例主要来源于Githu
我是一名优秀的程序员,十分优秀!