mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-04 19:45:59 +00:00
Refactor legacy mappings to use PlotBlocks
This commit is contained in:
parent
fb7bcef05f
commit
4b02bb1df8
6 changed files with 779 additions and 1 deletions
|
@ -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);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue