Skip to content

Commit

Permalink
Migrate TEXT_BACKGROUND_COLOR value type to sponge color (#2494)
Browse files Browse the repository at this point in the history
replace java.awt.Color
  • Loading branch information
ImMorpheus authored May 4, 2024
1 parent d5a46ad commit dd2c398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/spongepowered/api/data/Keys.java
Original file line number Diff line number Diff line change
Expand Up @@ -3047,9 +3047,9 @@ public final class Keys {
public static final Key<Value<TextAlignment>> TEXT_ALIGNMENT = Keys.key(ResourceKey.sponge("text_alignment"), TextAlignment.class);

/**
* The background {@link java.awt.Color} of a {@link TextDisplay}.
* The background {@link Color} of a {@link TextDisplay}.
*/
public static final Key<Value<java.awt.Color>> TEXT_BACKGROUND_COLOR = Keys.key(ResourceKey.sponge("text_background_color"), java.awt.Color.class);
public static final Key<Value<Color>> TEXT_BACKGROUND_COLOR = Keys.key(ResourceKey.sponge("text_background_color"), Color.class);

/**
* The remaining fuse time in ticks of a {@link FusedExplosive}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@

import net.kyori.adventure.text.Component;
import org.spongepowered.api.data.Keys;

import java.awt.Color;
import org.spongepowered.api.util.Color;

public interface TextDisplay extends DisplayEntity {

Expand Down

0 comments on commit dd2c398

Please sign in to comment.