Skip to content

Commit 343d908

Browse files
Add Keys.FIXED for item frames (#2597)
1 parent d4e7e85 commit 343d908

File tree

1 file changed

+7
-0
lines changed
  • src/main/java/org/spongepowered/api/data

1 file changed

+7
-0
lines changed

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,13 @@ public final class Keys {
11241124
*/
11251125
public static final Key<Value<UUID>> FIRST_TRUSTED = Keys.key(ResourceKey.sponge("first_trusted"), UUID.class);
11261126

1127+
/**
1128+
* Whether a {@link ItemFrame} is "fixed".
1129+
*
1130+
* <p>Fixed item frames can not have their contents modified.</p>
1131+
*/
1132+
public static final Key<Value<Boolean>> FIXED = Keys.key(ResourceKey.sponge("fixed"), Boolean.class);
1133+
11271134
/**
11281135
* The fixed time in a {@link ServerWorld world} of a {@link WorldType}.
11291136
* <p>If set the time is fixed at a particular {@link MinecraftDayTime} otherwise time flows freely.</p>

0 commit comments

Comments
 (0)