mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-09 15:55:27 +02:00
Refactor legacy mappings to use PlotBlocks
This commit is contained in:
@@ -272,4 +272,6 @@ public interface IPlotMain extends ILogger {
|
||||
AbstractTitle initTitleManager();
|
||||
|
||||
List<String> getPluginIds();
|
||||
|
||||
LegacyMappings getLegacyMappings();
|
||||
}
|
||||
|
@@ -0,0 +1,15 @@
|
||||
package com.github.intellectualsites.plotsquared.plot.util;
|
||||
|
||||
import com.github.intellectualsites.plotsquared.plot.object.PlotBlock;
|
||||
|
||||
public abstract class LegacyMappings {
|
||||
|
||||
public abstract PlotBlock fromLegacyToString(final int id);
|
||||
|
||||
public abstract PlotBlock fromLegacyToString(final int id, final int data);
|
||||
|
||||
public abstract PlotBlock fromLegacyToString(final String id);
|
||||
|
||||
public abstract PlotBlock fromStringToLegacy(final String id);
|
||||
|
||||
}
|
Reference in New Issue
Block a user