Skip to content

Commit c7a4493

Browse files
committed
[PlaybackSerialiser] Changed TASFile to TASfile for better consistency
1 parent 4d12a49 commit c7a4493

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/main/java/com/minecrafttas/tasmod/commands/CommandLoadTAS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public List<String> getTabCompletions(MinecraftServer server, ICommandSender sen
6161
List<String> tab;
6262
if (args.length == 1) {
6363
try {
64-
tab = TASmod.tabCompletionUtils.getTASFileList(getCommandSenderAsPlayer(sender).getName());
64+
tab = TASmod.tabCompletionUtils.getTASfileList(getCommandSenderAsPlayer(sender).getName());
6565
} catch (TimeoutException e) {
6666
sender.sendMessage(new TextComponentString(TextFormatting.RED + "Failed to fetch the file list after 2 seconds, something went wrong"));
6767
TASmod.LOGGER.catching(e);

src/main/java/com/minecrafttas/tasmod/commands/CommandSaveTAS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public List<String> getTabCompletions(MinecraftServer server, ICommandSender sen
7474
check = true;
7575
}
7676
try {
77-
tab = TASmod.tabCompletionUtils.getTASFileList(getCommandSenderAsPlayer(sender).getName());
77+
tab = TASmod.tabCompletionUtils.getTASfileList(getCommandSenderAsPlayer(sender).getName());
7878
} catch (TimeoutException e) {
7979
sender.sendMessage(new TextComponentString(TextFormatting.RED + "Failed to fetch the file list after 2 seconds, something went wrong"));
8080
TASmod.LOGGER.catching(e);

src/main/java/com/minecrafttas/tasmod/commands/TabCompletionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void onServerPacket(PacketID id, ByteBuffer buf, String username) throws
5656
}
5757
}
5858

59-
public List<String> getTASFileList(String playername) throws InterruptedException, ExecutionException, TimeoutException {
59+
public List<String> getTASfileList(String playername) throws InterruptedException, ExecutionException, TimeoutException {
6060
fileList = new CompletableFuture<>();
6161
try {
6262
TASmod.server.sendTo(playername, new TASmodBufferBuilder(COMMAND_TASFILELIST));

src/main/java/com/minecrafttas/tasmod/playback/metadata/PlaybackMetadataRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import com.minecrafttas.tasmod.playback.metadata.PlaybackMetadata.PlaybackMetadataExtension;
1111

1212
/**
13-
* Registry for registering custom metadata that is stored in the TASFile.<br>
13+
* Registry for registering custom metadata that is stored in the TASfile.<br>
1414
* <br>
1515
* The default metadata includes general information such as author name,
1616
* savestate/rerecord count and category.<br>
@@ -46,7 +46,7 @@ public void handleOnLoad(List<PlaybackMetadata> meta) {
4646

4747
extension.onLoad(metadata);
4848
} else {
49-
TASmod.LOGGER.warn("The metadata extension {} was not found while loading the TASFile. Things might not be correctly loaded!", metadata.getExtensionName());
49+
TASmod.LOGGER.warn("The metadata extension {} was not found while loading the TASfile. Things might not be correctly loaded!", metadata.getExtensionName());
5050
}
5151
}
5252
}

src/main/java/com/minecrafttas/tasmod/playback/tasfile/flavor/SerialiserFlavorBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public abstract class SerialiserFlavorBase implements Registerable {
4444
protected TickContainer previousTickContainer = null;
4545

4646
protected String headerStart() {
47-
return createCenteredHeading("TASFile", '#', 50);
47+
return createCenteredHeading("TASfile", '#', 50);
4848
}
4949

5050
/**

src/main/java/com/minecrafttas/tasmod/registries/TASmodAPIRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
public class TASmodAPIRegistry {
1010
/**
11-
* Registry for registering custom metadata that is stored in the TASFile.<br>
11+
* Registry for registering custom metadata that is stored in the TASfile.<br>
1212
* <br>
1313
* The default metadata includes general information such as author name,
1414
* savestate/rerecord count and category.<br>
@@ -21,7 +21,7 @@ public class TASmodAPIRegistry {
2121
* Registry for registering custom behavior for each tick during recording and playback.<br>
2222
* <br>
2323
* File commands give the opportunity to run commands on each recorded tick and each played back tick.<br>
24-
* File commands also have access to the TASFile so that data can be stored and read in/from the TASFile.
24+
* File commands also have access to the TASfile so that data can be stored and read in/from the TASfile.
2525
*
2626
*/
2727
public static final PlaybackFileCommandsRegistry PLAYBACK_FILE_COMMAND = new PlaybackFileCommandsRegistry();

src/test/java/tasmod/playback/tasfile/PlaybackSerialiserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void testSerialiser() {
205205
@Test
206206
void testDeserialiser() throws PlaybackLoadException, IOException {
207207
List<String> lines = new ArrayList<>();
208-
lines.add("TASFile");
208+
lines.add("TASfile");
209209
lines.add("FileCommand-Extensions: tasmod_testFileExtension");
210210
lines.add("Flavor: Test");
211211
lines.add("----------- Test ----------");

src/test/java/tasmod/playback/tasfile/SerialiserFlavorBaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void testSerialiseFlavorname() {
5959

6060
@Test
6161
void testSerialiseHeaderStart() {
62-
assertEquals("##################### TASFile ####################", headerStart());
62+
assertEquals("##################### TASfile ####################", headerStart());
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)