Skip to content

Commit 13fe2f4

Browse files
committed
Add DataQuery objects for ProfileProperty
1 parent 56b822c commit 13fe2f4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/org/spongepowered/api/data/persistence/Queries.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ public final class Queries {
8787
public static final DataQuery UUID_MOST = of("UuidMost");
8888
public static final DataQuery POSITION = of("Pos");
8989

90+
// ProfileProperty
91+
public static final DataQuery PROPERTY_NAME = of("name");
92+
public static final DataQuery PROPERTY_VALUE = of("value");
93+
public static final DataQuery PROPERTY_SIGNATURE = of("signature");
94+
9095
// Suppress default constructor to ensure non-instantiability.
9196
private Queries() {
9297
throw new AssertionError("You should not be attempting to instantiate this class.");

src/main/java/org/spongepowered/api/profile/property/ProfileProperty.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
/**
3737
* Represents a property in a {@link GameProfile}'s profile property map.
3838
*
39-
* <p>This interface should not be implemented.</p>
39+
* <p>This interface should not be implemented by third parties - use
40+
* {@link #of(String, String)} or {@link #of(String, String, String)} to
41+
* create instances instead.</p>
4042
*
4143
* @see #of(String, String)
4244
* @see #of(String, String, String)

0 commit comments

Comments
 (0)