mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-28 03:19:15 +00:00
[Small tweaks] Moved packages
This commit is contained in:
@@ -328,6 +328,29 @@ public interface ItemManager extends Reloadable {
|
||||
@Nullable
|
||||
Crop.Stage getCropStageByStageID(String id);
|
||||
|
||||
/**
|
||||
* Update a pot's block state
|
||||
*
|
||||
* @param location location
|
||||
* @param pot pot config
|
||||
* @param hasWater has water or not
|
||||
* @param fertilizer fertilizer
|
||||
*/
|
||||
void updatePotState(Location location, Pot pot, boolean hasWater, Fertilizer fertilizer);
|
||||
|
||||
/**
|
||||
* Get the pots that can be watered with a watering can
|
||||
*
|
||||
* @param baseLocation the clicked pot's location
|
||||
* @param width width of the working range
|
||||
* @param length length of the working range
|
||||
* @param yaw player's yaw
|
||||
* @param potID pot's ID
|
||||
* @return the pots that can be watered
|
||||
*/
|
||||
@NotNull
|
||||
Collection<Location> getPotInRange(Location baseLocation, int width, int length, float yaw, String potID);
|
||||
|
||||
void handlePlayerInteractBlock(
|
||||
Player player,
|
||||
Block clickedBlock,
|
||||
@@ -369,32 +392,22 @@ public interface ItemManager extends Reloadable {
|
||||
Cancellable event
|
||||
);
|
||||
|
||||
void handlePlayerPlaceBlock(Player player, Block block, String blockID, Cancellable event);
|
||||
void handlePlayerPlaceBlock(
|
||||
Player player,
|
||||
Block block,
|
||||
String blockID,
|
||||
Cancellable event
|
||||
);
|
||||
|
||||
void handleEntityTramplingBlock(Entity entity, Block block, Cancellable event);
|
||||
void handleEntityTramplingBlock(
|
||||
Entity entity,
|
||||
Block block,
|
||||
Cancellable event
|
||||
);
|
||||
|
||||
void handleExplosion(Entity entity, List<Block> blocks, Cancellable event);
|
||||
|
||||
/**
|
||||
* Update a pot's block state
|
||||
*
|
||||
* @param location location
|
||||
* @param pot pot config
|
||||
* @param hasWater has water or not
|
||||
* @param fertilizer fertilizer
|
||||
*/
|
||||
void updatePotState(Location location, Pot pot, boolean hasWater, Fertilizer fertilizer);
|
||||
|
||||
/**
|
||||
* Get the pots that can be watered with a watering can
|
||||
*
|
||||
* @param baseLocation the clicked pot's location
|
||||
* @param width width of the working range
|
||||
* @param length length of the working range
|
||||
* @param yaw player's yaw
|
||||
* @param potID pot's ID
|
||||
* @return the pots that can be watered
|
||||
*/
|
||||
@NotNull
|
||||
Collection<Location> getPotInRange(Location baseLocation, int width, int length, float yaw, String potID);
|
||||
void handleExplosion(
|
||||
Entity entity,
|
||||
List<Block> blocks,
|
||||
Cancellable event
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.momirealms.customcrops.api.mechanic.item;
|
||||
package net.momirealms.customcrops.api.mechanic.item.custom;
|
||||
|
||||
import net.momirealms.customcrops.api.CustomCropsPlugin;
|
||||
import net.momirealms.customcrops.api.event.BoneMealDispenseEvent;
|
||||
@@ -23,6 +23,7 @@ import net.momirealms.customcrops.api.manager.ConfigManager;
|
||||
import net.momirealms.customcrops.api.manager.ItemManager;
|
||||
import net.momirealms.customcrops.api.manager.VersionManager;
|
||||
import net.momirealms.customcrops.api.manager.WorldManager;
|
||||
import net.momirealms.customcrops.api.mechanic.item.*;
|
||||
import net.momirealms.customcrops.api.mechanic.requirement.State;
|
||||
import net.momirealms.customcrops.api.mechanic.world.SimpleLocation;
|
||||
import net.momirealms.customcrops.api.mechanic.world.level.WorldCrop;
|
||||
@@ -15,7 +15,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.momirealms.customcrops.api.mechanic.item;
|
||||
package net.momirealms.customcrops.api.mechanic.item.custom;
|
||||
|
||||
import net.momirealms.customcrops.api.manager.VersionManager;
|
||||
import net.momirealms.customcrops.api.mechanic.misc.CRotation;
|
||||
Reference in New Issue
Block a user