mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-26 02:19:28 +00:00
54 lines
954 B
Markdown
54 lines
954 B
Markdown

|
|
|
|
|
|
# Custom-Crops
|
|
StardewValley Like Farming System
|
|
|
|
### How to buy
|
|
|
|
https://afdian.net/@xiaomomi
|
|
|
|
https://polymart.org/resource/customcrops.2625
|
|
|
|
### How to compile
|
|
|
|
Execute gradle build in your IDLE and get the jar in /build/libs folder
|
|
|
|
### API Guide
|
|
```access transformers
|
|
public class YourClass {
|
|
|
|
private CustomCropsAPI api;
|
|
|
|
public YourClass() {
|
|
api = CustomCropsAPI.getInstance();
|
|
}
|
|
|
|
public yourMethod() {
|
|
api.xxx();
|
|
}
|
|
}
|
|
```
|
|
|
|
#### Events
|
|
```
|
|
CropBreakEvent
|
|
CropInteractEvent
|
|
CropPlantEvent
|
|
FertilizerUseEvent
|
|
GreenhouseGlassBreakEvent
|
|
GreenhouseGlassPlaceEvent
|
|
PotBreakEvent
|
|
PotInfoEvent
|
|
PotInteractEvent
|
|
PotPlaceEvent
|
|
PotWaterEvent
|
|
ScarecrowBreakEvent
|
|
ScarecrowPlaceEvent
|
|
SprinklerFillEvent
|
|
SprinklerPlaceEvent
|
|
SprinklerInteractEvent
|
|
SprinklerBreakEvent
|
|
SeasonChangeEvent
|
|
```
|