refactor: actually don't use lombok for API just yet

feat/data-edit-commands
William278 1 year ago
parent 9fc9e8caf4
commit df0bd7a7cb

@ -23,8 +23,6 @@ import com.google.common.collect.Maps;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import de.themoep.minedown.adventure.MineDown;
import lombok.Getter;
import lombok.Setter;
import net.william278.desertwell.util.Version;
import net.william278.husksync.HuskSync;
import net.william278.husksync.adapter.Adaptable;
@ -54,21 +52,6 @@ public class DataSnapshot {
@SerializedName("id")
protected UUID id;
/**
* -- GETTER --
* Get whether the snapshot is pinned
*
* @return Whether the snapshot is pinned
*
* -- SETTER --
* Set whether the snapshot is pinned
*
* @param pinned Whether the snapshot is pinned
*
*/
@Setter
@Getter
@SerializedName("pinned")
protected boolean pinned;
@ -87,14 +70,6 @@ public class DataSnapshot {
@SerializedName("platform_type")
protected String platformType;
/**
* -- GETTER --
* Get the format version of the snapshot (indicating the version of HuskSync that created it)
*
* @return The format version of the snapshot
*
*/
@Getter
@SerializedName("format_version")
protected int formatVersion;
@ -193,6 +168,26 @@ public class DataSnapshot {
return id.toString().substring(0, 8);
}
/**
* Get whether the snapshot is pinned
*
* @return Whether the snapshot is pinned
* @since 3.0
*/
public boolean isPinned() {
return pinned;
}
/**
* Set whether the snapshot is pinned
*
* @param pinned Whether the snapshot is pinned
* @since 3.0
*/
public void setPinned(boolean pinned) {
this.pinned = pinned;
}
/**
* Get why the snapshot was created
*
@ -260,6 +255,16 @@ public class DataSnapshot {
return platformType;
}
/**
* Get the format version of the snapshot (indicating the version of HuskSync that created it)
*
* @return The format version of the snapshot
* @since 3.0
*/
public int getFormatVersion() {
return formatVersion;
}
/**
* A packed {@link DataSnapshot} that has not been deserialized.
*

Loading…
Cancel
Save