Skip to content

Commit

Permalink
Add several TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr committed Jun 2, 2019
1 parent d92c414 commit d21bc27
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import java.util.ArrayList;
import java.util.Comparator;

//TODO Public classes
//TODO Move all the "Tasks" out of here
class AIEventHandler implements Listener {
static void sortPlayerIfEnabled(Inventory inventory) {
new InventorySorter(inventory, 9).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import java.util.logging.Logger;
import java.util.stream.Collectors;

//TODO Fix all the bad syntax and message sending code
//TODO Switch to metadata for storage of data if possible
public class AutomaticInventory extends JavaPlugin {
//for convenience, a reference to the instance of this plugin
public static AutomaticInventory instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.io.IOException;
import java.util.HashMap;

//TODO Why is a config folder not dynamically generated with the file class?
class DataStore {
private final static String dataLayerFolderPath = "plugins" + File.separator + "AutomaticInventory";
final static String playerDataFolderPath = dataLayerFolderPath + File.separator + "PlayerData";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;

//TODO Refractor this into a loop or two
class FindChestsThread extends Thread {
private World world;
private ChunkSnapshot[][] snapshots;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

package me.ryanhamshire.AutomaticInventory;

//TODO Make help less bothersome
public enum Messages {
AutoSortHelp,
ChestSortEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import java.util.List;
import java.util.UUID;

//TODO Metadata
//TODO Spaces in keys
class PlayerData {
private final static String METADATA_TAG = "AI_PlayerData";
int firstEmptySlot = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import org.bukkit.ChatColor;

//TODO Conventions + a static constants class
//just a few constants for chat color codes
class TextMode {
final static ChatColor Info = ChatColor.AQUA;
Expand Down

0 comments on commit d21bc27

Please sign in to comment.