Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Oct 2, 2023
1 parent 46c9655 commit 981b623
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ public interface HologramConfig {
/**
* Save the hologram file.
*
* @return True if the operation was successful, false otherwise in a {@link CompletableFuture}.
* @return CompletableFuture that completes when the operation is finished.
*/
CompletableFuture<Void> save();

/**
* Reload the hologram file.
*
* @return True if the operation was successful, false otherwise in a {@link CompletableFuture}.
* @return CompletableFuture that completes when the operation is finished.
*/
CompletableFuture<Void> reload();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,5 @@ public enum HologramLineType {
* A line displaying an Entity.
*/
ENTITY,
/**
* A line, made of multiple lines, displaying an image.
*/
IMAGE,
UNKNOWN
}
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,9 @@ public int getFreeEntityId() {
}
}

@SuppressWarnings("deprecation")
@Override
public int getEntityTypeId(EntityType type) {
// TODO: Find a better way to get the entity type id
if (type == EntityType.ARMOR_STAND) {
return 30;
}
if (type == EntityType.DROPPED_ITEM) {
return 2;
}
// noinspection deprecation
return ENTITY_TYPE_NAME_ID_MAP == null ? type.getTypeId() : ENTITY_TYPE_NAME_ID_MAP.get(type.getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,9 @@ public int getFreeEntityId() {
}
}

@SuppressWarnings("deprecation")
@Override
public int getEntityTypeId(EntityType type) {
// TODO: Find a better way to get the entity type id
// if (type == EntityType.ARMOR_STAND) {
// return 30;
// }
// if (type == EntityType.DROPPED_ITEM) {
// return 2;
// }
// noinspection deprecation
return ENTITY_TYPE_NAME_ID_MAP == null ? type.getTypeId() : ENTITY_TYPE_NAME_ID_MAP.get(type.getName());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public synchronized void reload() {
this.stepCounter.set(0);

// Register default animations
// TODO: Handle colors in frame data
this.registerAnimation(new RainbowAnimation());
this.registerAnimation(new WaveAnimation());
this.registerAnimation(new BurnAnimation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@

public class DefaultHologramLine implements HologramLine {

/*
* TODO:
* - Hover content for text lines
*/

private final @NotNull HologramPage parent;
private final @NotNull HologramLineSettings settings;
private final @NotNull PositionManager positionManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

/**
* This class stores data about a pinged server.
*
* @since 3.0.0
*/
@SuppressWarnings("unused")
@Getter
public class PingerResponse {

Expand Down

0 comments on commit 981b623

Please sign in to comment.