mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-27 19:09:09 +00:00
3.4.0.6
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user