Package de.steev.bm.changes.interaction
Class Replanting
java.lang.Object
Replanting
- All Implemented Interfaces:
org.bukkit.event.Listener
handles the replanting mechanic
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
replanting(org.bukkit.block.Block target, org.bukkit.Location loc, org.bukkit.Material[] drop, int[] dropRate)
handles the replanting mechanic in a better way
-
Field Details
-
plugin
plugin reference
-
-
Constructor Details
-
Replanting
constructor- Parameters:
plugin
- plugin reference
-
-
Method Details
-
replanting
public static void replanting(org.bukkit.block.Block target, org.bukkit.Location loc, org.bukkit.Material[] drop, int[] dropRate)handles the replanting mechanic in a better way- Parameters:
target
- the crops blockloc
- the location of the cropdrop
- the Materials that can dropdropRate
- the amount each item will drop
-