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