9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 03:19:15 +00:00
This commit is contained in:
Xiao-MoMi
2023-05-13 02:05:18 +08:00
parent f9d6274732
commit 363e976f36
2 changed files with 10 additions and 8 deletions

View File

@@ -20,10 +20,11 @@ package net.momirealms.customcrops.api.customplugin.crucible;
import net.momirealms.customcrops.api.customplugin.Handler;
import net.momirealms.customcrops.api.customplugin.PlatformManager;
@Deprecated
public class CrucibleHandler extends Handler {
public CrucibleHandler(PlatformManager platformManager) {
super(platformManager);
//TODO NO API Events
//TODO NO API Events Available
}
}

View File

@@ -34,6 +34,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.Optional;
@Deprecated
public class CruciblePluginImpl implements PlatformInterface {
@Override
@@ -62,6 +63,7 @@ public class CruciblePluginImpl implements PlatformInterface {
@Nullable
@Override
@Deprecated
public ItemFrame placeItemFrame(Location location, String id) {
Optional<CrucibleItem> optionalCI = MythicCrucible.inst().getItemManager().getItem(id);
if (optionalCI.isPresent()) {
@@ -75,6 +77,7 @@ public class CruciblePluginImpl implements PlatformInterface {
@Nullable
@Override
@Deprecated
public ItemDisplay placeItemDisplay(Location location, String id) {
//TODO Not implemented feature
return null;
@@ -115,18 +118,15 @@ public class CruciblePluginImpl implements PlatformInterface {
}
@Override
@Deprecated
public void dropBlockLoot(Block block) {
//TODO Not necessary
//TODO
}
@Override
@Deprecated
public void placeChorus(Location location, String id) {
Optional<CrucibleItem> optionalCI = MythicCrucible.inst().getItemManager().getItem(id);
if (optionalCI.isPresent()) {
location.getBlock().setBlockData(optionalCI.get().getBlockData().getBlockData());
} else {
AdventureUtils.consoleMessage("<red>[CustomCrop] Chorus not exists: " + id);
}
//TODO
}
@NotNull
@@ -139,6 +139,7 @@ public class CruciblePluginImpl implements PlatformInterface {
@Nullable
@Override
@Deprecated
public String getItemDisplayID(ItemDisplay itemDisplay) {
return null;
}