forked from RebelKeithy/Aquaculture
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CraftTweaker support for Fish Data. Closes #209
- Loading branch information
1 parent
417011d
commit bed7c66
Showing
4 changed files
with
22 additions
and
1 deletion.
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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/teammetallurgy/aquaculture/integration/crafttweaker/CTFishData.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.teammetallurgy.aquaculture.integration.crafttweaker; | ||
|
||
import com.blamejared.crafttweaker.api.annotations.ZenRegister; | ||
import com.blamejared.crafttweaker.api.item.IItemStack; | ||
import com.teammetallurgy.aquaculture.api.AquacultureAPI; | ||
import org.openzen.zencode.java.ZenCodeType; | ||
|
||
@ZenRegister | ||
@ZenCodeType.Name("mods.aquaculture.FishData") | ||
public class CTFishData { | ||
|
||
@ZenCodeType.Method | ||
public void add(IItemStack fishStack, double min, double max, int filletAmount) { | ||
AquacultureAPI.FISH_DATA.add(fishStack.getDefinition(), min, max, filletAmount); | ||
} | ||
} |