-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
846efbb
commit 537259f
Showing
6 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
src/main/java/youyihj/zenutils/cotx/function/IBlockActivated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package youyihj.zenutils.cotx.function; | ||
|
||
import com.teamacronymcoders.contenttweaker.api.ctobjects.blockpos.IBlockPos; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.blockstate.ICTBlockState; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.entity.player.ICTPlayer; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.enums.Facing; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.enums.Hand; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.world.IWorld; | ||
import crafttweaker.annotations.ModOnly; | ||
import crafttweaker.annotations.ZenRegister; | ||
import crafttweaker.api.block.IBlockState; | ||
import crafttweaker.api.player.IPlayer; | ||
import crafttweaker.api.world.IBlockPos; | ||
import crafttweaker.api.world.IWorld; | ||
import crafttweaker.api.util.Position3f; | ||
import stanhebben.zenscript.annotations.ZenClass; | ||
|
||
@FunctionalInterface | ||
@ZenRegister | ||
@ModOnly("contenttweaker") | ||
@ZenClass("mods.zenutils.cotx.IBlockActivated") | ||
public interface IBlockActivated { | ||
boolean activate(IWorld world, IBlockPos pos, IBlockState state, IPlayer player, Hand hand, Facing facing, float[] blockHit); | ||
boolean activate(IWorld world, IBlockPos pos, ICTBlockState state, ICTPlayer player, Hand hand, Facing facing, Position3f blockHit); | ||
} |
8 changes: 4 additions & 4 deletions
8
src/main/java/youyihj/zenutils/cotx/function/IEntityCollided.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package youyihj.zenutils.cotx.function; | ||
|
||
import com.teamacronymcoders.contenttweaker.api.ctobjects.blockpos.IBlockPos; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.blockstate.ICTBlockState; | ||
import com.teamacronymcoders.contenttweaker.api.ctobjects.world.IWorld; | ||
import crafttweaker.annotations.ZenRegister; | ||
import crafttweaker.api.block.IBlockState; | ||
import crafttweaker.api.entity.IEntity; | ||
import crafttweaker.api.world.IBlockPos; | ||
import crafttweaker.api.world.IWorld; | ||
import stanhebben.zenscript.annotations.ZenClass; | ||
|
||
@FunctionalInterface | ||
@ZenRegister | ||
@ZenClass("mods.zenutils.cotx.IEntityCollided") | ||
public interface IEntityCollided { | ||
void call(IWorld world, IBlockPos pos, IBlockState state, IEntity entity); | ||
void call(IWorld world, IBlockPos pos, ICTBlockState state, IEntity entity); | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/youyihj/zenutils/cotx/function/IEntityWalk.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/youyihj/zenutils/cotx/function/IGetEntityLifeSpan.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters