Class Replanting

java.lang.Object
Replanting
All Implemented Interfaces:
org.bukkit.event.Listener

public class Replanting extends Object implements org.bukkit.event.Listener
handles the replanting mechanic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private main
    plugin reference
  • Constructor Summary

    Constructors
    Constructor
    Description
    Replanting​(main plugin)
    constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • plugin

      private main plugin
      plugin reference
  • Constructor Details

    • Replanting

      public Replanting(main plugin)
      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 block
      loc - the location of the crop
      drop - the Materials that can drop
      dropRate - the amount each item will drop