9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 19:09:09 +00:00
This commit is contained in:
XiaoMoMi
2024-03-12 01:24:39 +08:00
parent 1c64f84ec9
commit 9706fef822
15 changed files with 212 additions and 81 deletions

View File

@@ -20,6 +20,7 @@ package net.momirealms.customcrops.api.manager;
import net.momirealms.customcrops.api.common.Reloadable;
import net.momirealms.customcrops.api.integration.ItemLibrary;
import net.momirealms.customcrops.api.mechanic.item.*;
import net.momirealms.customcrops.api.mechanic.misc.CRotation;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
@@ -42,9 +43,9 @@ public interface ItemManager extends Reloadable {
void placeItem(Location location, ItemCarrier carrier, String id);
void placeItem(Location location, ItemCarrier carrier, String id, boolean rotate);
void placeItem(Location location, ItemCarrier carrier, String id, CRotation rotate);
void removeAnythingAt(Location location);
CRotation removeAnythingAt(Location location);
@Nullable
WateringCan getWateringCanByID(@NotNull String id);

View File

@@ -0,0 +1,21 @@
package net.momirealms.customcrops.api.mechanic.misc;
public enum CRotation {
NONE(0f),
RANDOM(0f),
EAST(-90f),
SOUTH(0f),
WEST(90f),
NORTH(180f);
private final float yaw;
CRotation(float yaw) {
this.yaw = yaw;
}
public float getYaw() {
return yaw;
}
}