This commit is contained in:
Jesse Boyd
2018-06-07 08:15:28 +10:00
parent 40635255e3
commit 442513b592
2 changed files with 34 additions and 17 deletions

View File

@ -1,5 +1,7 @@
package com.intellectualcrafters.plot.object;
import javax.annotation.Nullable;
public class PlotId {
/**
* x value
@ -77,6 +79,10 @@ public class PlotId {
}
}
public static PlotId of(@Nullable Plot plot) {
return plot != null ? plot.getId() : null;
}
/**
* Get the PlotId from the HashCode<br>
* Note: Only accurate for small x,z values (short)