- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中stanhebben.zenscript.annotations.ZenClass
类的一些代码示例,展示了ZenClass
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZenClass
类的具体详情如下:
包路径:stanhebben.zenscript.annotations.ZenClass
类名称:ZenClass
暂无
代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2
@ZenClass( "mods.appliedenergistics2.Cannon" )
public class CannonRegistry
{
private CannonRegistry()
{
}
@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
@ZenClass( "mods.appliedenergistics2.Spatial" )
public class SpatialRegistry
代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2
@ZenClass( "mods.appliedenergistics2.Inscriber" )
public class InscriberRecipes
代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2
@ZenClass( "mods.appliedenergistics2.Grinder" )
public class GrinderRecipes
代码示例来源:origin: AppliedEnergistics/Applied-Energistics-2
@ZenClass( "mods.appliedenergistics2.Attunement" )
public class AttunementRegistry
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.basic")
@ZenRegister
public static class CalculatorHandler {
@ZenMethod
public static void addRecipe(IIngredient input1, IIngredient input2, IIngredient output) {
CraftTweakerAPI.apply(new SonarAddRecipe(CalculatorRecipes.instance(), Lists.newArrayList(input1, input2), Lists.newArrayList(output)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(CalculatorRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.algorithmSeparator")
@ZenRegister
public static class AlgorithmSeparatorHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1, IIngredient output2) {
CraftTweakerAPI.apply(new SonarAddRecipe(AlgorithmSeparatorRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1, output2)));
}
@ZenMethod
public static void removeRecipe(IIngredient output1, IIngredient output2) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(AlgorithmSeparatorRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output1, output2)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.scientific")
@ZenRegister
public static class ScientificHandler {
@ZenMethod
public static void addRecipe(IIngredient input1, IIngredient input2, IIngredient output) {
CraftTweakerAPI.apply(new SonarAddRecipe(ScientificRecipes.instance(), Lists.newArrayList(input1, input2), Lists.newArrayList(output)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(ScientificRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.atomic")
@ZenRegister
public static class AtomicHandler {
@ZenMethod
public static void addRecipe(IIngredient input1, IIngredient input2, IIngredient input3, IIngredient output) {
CraftTweakerAPI.apply(new SonarAddRecipe(AtomicCalculatorRecipes.instance(), Lists.newArrayList(input1, input2, input3), Lists.newArrayList(output)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(AtomicCalculatorRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.stoneSeparator")
@ZenRegister
public static class StoneSeparatorHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1, IIngredient output2) {
CraftTweakerAPI.apply(new SonarAddRecipe(StoneSeparatorRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1, output2)));
}
@ZenMethod
public static void removeRecipe(IIngredient output, IIngredient output2) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(StoneSeparatorRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output, output2)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.restorationChamber")
@ZenRegister
public static class RestorationChamberHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1) {
CraftTweakerAPI.apply(new SonarAddRecipe(RestorationChamberRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(RestorationChamberRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.reassemblyChamber")
@ZenRegister
public static class ReassemblyChamberHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1) {
CraftTweakerAPI.apply(new SonarAddRecipe(ReassemblyChamberRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(ReassemblyChamberRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.starch")
@ZenRegister
public static class StarchExtractorHandler {
@ZenMethod
public static void addRecipe(IIngredient input, int value) {
CraftTweakerAPI.apply(new SonarAddRecipe.Value(StarchExtractorRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(), value));
}
@ZenMethod
public static void removeRecipe(IIngredient input) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(StarchExtractorRecipes.instance(), RecipeObjectType.INPUT, Lists.newArrayList(input)));
}
}
代码示例来源:origin: jaredlll08/ModTweaker
@ZenClass("modtweaker.tconstruct.ITICMaterialDefinition")
@ZenRegister
public interface ITICMaterialDefinition {
@ZenGetter("stack")
ITICMaterial asMaterial();
@ZenGetter("name")
String getName();
@ZenGetter("displayName")
String getDisplayName();
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.flawless")
@ZenRegister
public static class FlawlessHandler {
@ZenMethod
public static void addRecipe(IIngredient input1, IIngredient input2, IIngredient input3, IIngredient input4, IIngredient output) {
CraftTweakerAPI.apply(new SonarAddRecipe(FlawlessCalculatorRecipes.instance(), Lists.newArrayList(input1, input2, input3, input4), Lists.newArrayList(output)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(FlawlessCalculatorRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.conductorMast")
@ZenRegister
public static class ConductorMastHandler {
@ZenMethod
public static void addRecipe(IIngredient input, int powercost, IIngredient output) {
CraftTweakerAPI.apply(new SonarAddRecipe.Value(ConductorMastRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output), powercost));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(ConductorMastRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.processingChamber")
@ZenRegister
public static class ProcessingChamberHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1) {
CraftTweakerAPI.apply(new SonarAddRecipe(ProcessingChamberRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1)));
}
@ZenMethod
public static void removeRecipe(IIngredient output) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(ProcessingChamberRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output)));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.fabricationChamber")
@ZenRegister
public static class FabricationChamberHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1) {
CraftTweakerAPI.apply(new SonarAddRecipe(FabricationChamberRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1)));
}
@ZenMethod
public static void removeRecipe(IIngredient input) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(FabricationChamberRecipes.instance(), RecipeObjectType.INPUT, Lists.newArrayList(input)));
}
}
代码示例来源:origin: GregTechCE/GregTech
@ZenClass("mods.gregtech.ore.filter.BlockFiller")
@ZenRegister
public abstract class BlockFiller {
public abstract void loadFromConfig(JsonObject object);
public abstract IBlockState getStateForGeneration(@Nullable IBlockState currentState, int x, int y, int z);
public abstract List<Function<IBlockState, IBlockState>> getAllPossibleStates();
@ZenMethod("getStateForGeneration")
public crafttweaker.api.block.IBlockState ctGetStateForGeneration(crafttweaker.api.block.IBlockState currentState, int x, int y, int z) {
IBlockState mcBlockState = CraftTweakerMC.getBlockState(currentState);
return CraftTweakerMC.getBlockState(getStateForGeneration(mcBlockState, x, y, z));
}
}
代码示例来源:origin: SonarSonic/Calculator
@ZenClass("mods.calculator.extractionChamber")
@ZenRegister
public static class ExtractionChamberHandler {
@ZenMethod
public static void addRecipe(IIngredient input, IIngredient output1, IIngredient output2) {
CraftTweakerAPI.apply(new SonarAddRecipe(ExtractionChamberRecipes.instance(), Lists.newArrayList(input), Lists.newArrayList(output1, output2)));
}
@ZenMethod
public static void removeRecipe(IIngredient output, IIngredient output2) {
CraftTweakerAPI.apply(new SonarRemoveRecipe(ExtractionChamberRecipes.instance(), RecipeObjectType.OUTPUT, Lists.newArrayList(output, output2)));
}
}
本文整理了Java中stanhebben.zenscript.annotations.ZenClass.()方法的一些代码示例,展示了ZenClass.()的具体用法。这些代码示例主要来源于Githu
我是一名优秀的程序员,十分优秀!