Skip to content

Commit ac0759a

Browse files
authored
Make ServerLocation implement DataSerializable (#2341)
1 parent e02da2b commit ac0759a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/spongepowered/api/world/server/ServerLocation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import org.spongepowered.api.block.BlockTypes;
3232
import org.spongepowered.api.data.DataHolder;
3333
import org.spongepowered.api.data.DirectionRelativeDataHolder;
34+
import org.spongepowered.api.data.persistence.DataSerializable;
3435
import org.spongepowered.api.data.value.Value;
3536
import org.spongepowered.api.entity.Entity;
3637
import org.spongepowered.api.entity.EntityType;
@@ -64,7 +65,7 @@
6465
* <p>Locations are immutable. Methods that change the properties of the
6566
* location create a new instance.</p>
6667
*/
67-
public interface ServerLocation extends DataHolder.Mutable, DirectionRelativeDataHolder.Mutable, Location<ServerWorld, ServerLocation> {
68+
public interface ServerLocation extends DataHolder.Mutable, DirectionRelativeDataHolder.Mutable, Location<ServerWorld, ServerLocation>, DataSerializable {
6869

6970
static ServerLocation of(final ServerWorld world, final double x, final double y, final double z) {
7071
return Sponge.game().factoryProvider().provide(Factory.class).create(world, new Vector3d(x, y, z));

0 commit comments

Comments
 (0)