Skip to content

Commit

Permalink
fix: renaming things
Browse files Browse the repository at this point in the history
  • Loading branch information
rootEnginear committed Dec 12, 2023
1 parent 2e4787c commit aa93aa1
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 61 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<img align="right" height="128" width="128" alt="" loading="lazy" decoding="async" src="./src/main/resources/icon.png"/>

# Playground
# Livemap

This is the beginning of awesome mods!
Online Livemap for your server.

> **Important**
> Required [Babric](https://github.com/Turnip-Labs/babric-instance-repo/releases) to run the mod.
## Features

- Feature #1
- Feature #2
- Feature #3
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ loader_version=0.14.19-babric.1-bta
# halplibe_version=2.3.0

# Mod
mod_version=1.0.0
mod_version=0.1.0
mod_group=rootenginear
mod_name=playground
mod_name=livemap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rootenginear.playground;
package rootenginear.livemap;

import net.minecraft.core.world.chunk.Chunk;

Expand Down
15 changes: 15 additions & 0 deletions src/main/java/rootenginear/livemap/Livemap.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package rootenginear.livemap;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Livemap implements ModInitializer {
public static final String MOD_ID = "livemap";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

@Override
public void onInitialize() {
LOGGER.info("Livemap initialized.");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rootenginear.playground.mixin;
package rootenginear.livemap.mixin;

import net.minecraft.client.world.chunk.provider.ChunkProviderClient;
import net.minecraft.core.world.chunk.Chunk;
Expand All @@ -9,8 +9,8 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import rootenginear.playground.ChunkProcessor;
import rootenginear.playground.Playground;
import rootenginear.livemap.ChunkProcessor;
import rootenginear.livemap.Livemap;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -29,7 +29,7 @@ void joopChunk(int chunkX, int chunkZ, CallbackInfoReturnable<Chunk> cir) {
ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(chunkX, chunkZ);
Chunk chunk = (Chunk) this.chunkMapping.get(chunkcoordintpair);
if (dumpedChunks.contains(chunkcoordintpair) || chunk == null || !chunk.receivedFromServer) return;
Playground.LOGGER.info("Dumping " + chunkX + "," + chunkZ);
Livemap.LOGGER.info("Dumping " + chunkX + "," + chunkZ);
try {
dumpedChunks.add(chunkcoordintpair);
ChunkProcessor.readAndDumpChunkData(chunkX, chunkZ, chunk);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package rootenginear.playground.mixin;
package rootenginear.livemap.mixin;

import net.minecraft.core.entity.player.EntityPlayer;
import net.minecraft.core.world.chunk.Chunk;
Expand All @@ -10,8 +10,8 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import rootenginear.playground.ChunkProcessor;
import rootenginear.playground.Playground;
import rootenginear.livemap.ChunkProcessor;
import rootenginear.livemap.Livemap;

import java.io.FileWriter;

Expand Down Expand Up @@ -51,7 +51,7 @@ void saveChunk(CallbackInfo ci) {
int targetChunkZ = chunkZ + chunkShiftZ;
Chunk chunk = overworld.chunkProviderServer.provideChunk(targetChunkX, targetChunkZ);
ChunkProcessor.readAndDumpChunkData(targetChunkX, targetChunkZ, chunk);
Playground.LOGGER.info("Chunk " + targetChunkX + "," + targetChunkZ + " dumped!");
Livemap.LOGGER.info("Chunk " + targetChunkX + "," + targetChunkZ + " dumped!");
}
}
}
Expand Down
15 changes: 0 additions & 15 deletions src/main/java/rootenginear/playground/Playground.java

This file was deleted.

52 changes: 26 additions & 26 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"schemaVersion": 1,
"id": "playground",
"version": "${version}",
"name": "Playground",
"description": "This is the beginning of awesome mods!",
"authors": [
"rootEnginear"
],
"schemaVersion": 1,
"id": "livemap",
"version": "${version}",
"name": "Livemap",
"description": "Online Livemap for your server",
"authors": [
"rootEnginear"
],
"icon": "icon.png",
"contact": {
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods",
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods",
"issues": "https://github.com/rootEnginear/bta-rootenginear-mods/issues"
},
"license": "CC0-1.0",
"environment": "*",
"entrypoints": {
"main": [
"rootenginear.playground.Playground"
]
},
"mixins": [
"playground.mixins.json"
],
"depends": {
"fabricloader": ">=0.13.3"
}
"contact": {
"homepage": "https://github.com/rootEnginear/bta-rootenginear-mods",
"sources": "https://github.com/rootEnginear/bta-rootenginear-mods",
"issues": "https://github.com/rootEnginear/bta-rootenginear-mods/issues"
},
"license": "CC0-1.0",
"environment": "*",
"entrypoints": {
"main": [
"rootenginear.livemap.Livemap"
]
},
"mixins": [
"livemap.mixins.json"
],
"depends": {
"fabricloader": ">=0.13.3"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "rootenginear.playground.mixin",
"package": "rootenginear.livemap.mixin",
"compatibilityLevel": "JAVA_8",
"server": [
"MinecraftServerMixin"
Expand Down

0 comments on commit aa93aa1

Please sign in to comment.