Skip to content

Commit

Permalink
missing functional interface method annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed Feb 28, 2021
1 parent c2c6f24 commit 9cf6e28
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
Expand Up @@ -13,5 +13,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockActivated")
@Document("mods/contenttweaker/API/functions/IBlockActivated")
public interface IBlockActivated extends ICotFunction {
@ZenCodeType.Method
String apply(BlockState state, World world, BlockPos pos, PlayerEntity player, String hand);
}
Expand Up @@ -12,5 +12,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockAdded")
@Document("mods/contenttweaker/API/functions/IBlockAdded")
public interface IBlockAdded extends ICotFunction {
@ZenCodeType.Method
void apply(BlockState state, World world, BlockPos pos, BlockState oldState, boolean isMoving);
}
Expand Up @@ -12,5 +12,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockColorSupplier")
@Document("mods/contenttweaker/API/functions/IBlockColorSupplier")
public interface IBlockColorSupplier extends ICotFunction {
@ZenCodeType.Method
int apply(BlockState state, @ZenCodeType.Nullable IBlockDisplayReader world, @ZenCodeType.Nullable BlockPos pos, int tintIndex);
}
Expand Up @@ -13,5 +13,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockNeighborChanged")
@Document("mods/contenttweaker/API/functions/IBlockNeighborChanged")
public interface IBlockNeighborChanged extends ICotFunction {
@ZenCodeType.Method
void apply(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean isMoving);
}
Expand Up @@ -14,5 +14,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockRandomTick")
@Document("mods/contenttweaker/API/functions/IBlockRandomTick")
public interface IBlockRandomTick extends ICotFunction {
@ZenCodeType.Method
void apply(BlockState state, ServerWorld world, BlockPos pos, Random random);
}
Expand Up @@ -12,5 +12,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IBlockReplaced")
@Document("mods/contenttweaker/API/functions/IBlockReplaced")
public interface IBlockReplaced extends ICotFunction {
@ZenCodeType.Method
void apply(BlockState state, World world, BlockPos pos, BlockState newState, boolean isMoving);
}
Expand Up @@ -10,5 +10,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IItemColorSupplier")
@Document("mods/contenttweaker/API/functions/IItemColorSupplier")
public interface IItemColorSupplier extends ICotFunction {
@ZenCodeType.Method
int apply(IItemStack stack, int tintIndex);
}
Expand Up @@ -11,5 +11,6 @@
@ZenCodeType.Name("mods.contenttweaker.functions.IItemUsingTick")
@Document("mods/contenttweaker/API/functions/IItemUsingTick")
public interface IItemUsingTick extends ICotFunction {
@ZenCodeType.Method
void apply(MCItemStackMutable stack, LivingEntity player, int count);
}

0 comments on commit 9cf6e28

Please sign in to comment.