Skip to content

Commit 8e68338

Browse files
committed
Initial commit
0 parents  commit 8e68338

36 files changed

+1886
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run
23+
24+
*.bytelog*

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Fast Log Block
2+
## Event multithread handling
3+
![](https://image.ibb.co/hyaPRw/Fast_Log_Block.png)
4+
5+
## Log file format
6+
7+
| Name | posX | posY | posZ | typeaction | playerid | blockid | timestamp |
8+
|:--------------------:|:------:|:------:|:------:|:--------------------------------------------------------------------------:|:--------:|:-------:|:---------:|
9+
| Field Length (bytes) | 4 byte | 4 byte | 4 byte | 1 byte ('0' for Remove, '1' for Insert, '2' for update, '100' for unknown) | 4 byte | 8 byte | 8 byte |
10+
11+
Total: 33 bytes per line
12+
13+
Filename: /{save}/{world/dimension}/*.bytelog
14+
15+
| Name | id | blockname |
16+
|:--------------------:|:------:|:------------------:|
17+
| Field Length (bytes) | 8 byte | 1 byte per symbols |
18+
19+
Total: ~ 21 bytes per block
20+
21+
Filename: blockmap.bytelog
22+
23+
| Name | id | nickname |
24+
|:--------------------:|:------:|:------------------:|
25+
| Field Length (bytes) | 4 byte | 1 byte per symbols |
26+
27+
Total: ~ 10 bytes per Player
28+
29+
Filename: nickmap.bytelog
30+

build.gradle

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
maven { url = "http://files.minecraftforge.net/maven" }
5+
}
6+
dependencies {
7+
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
8+
}
9+
}
10+
apply plugin: 'java'
11+
apply plugin: 'net.minecraftforge.gradle.forge'
12+
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
13+
14+
15+
version = "1.0"
16+
group = "ru.lionzxy.fastlogblock" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
17+
archivesBaseName = "FastLogBlock"
18+
19+
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
20+
compileJava {
21+
sourceCompatibility = targetCompatibility = '1.8'
22+
}
23+
24+
minecraft {
25+
version = "1.12.2-14.23.1.2555"
26+
runDir = "run"
27+
28+
// the mappings can be changed at any time, and must be in the following format.
29+
// snapshot_YYYYMMDD snapshot are built nightly.
30+
// stable_# stables are built at the discretion of the MCP team.
31+
// Use non-default mappings at your own risk. they may not always work.
32+
// simply re-run your setup task after changing the mappings to update your workspace.
33+
mappings = "snapshot_20171003"
34+
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
35+
}
36+
37+
dependencies {
38+
// you may put jars on which you depend on in ./libs
39+
// or you may define them like so..
40+
//compile "some.group:artifact:version:classifier"
41+
//compile "some.group:artifact:version"
42+
// https://mvnrepository.com/artifact/trove/trove
43+
compile "trove:trove:1.0.2"
44+
45+
// https://mvnrepository.com/artifact/org.mapdb/thread-weaver
46+
testCompile 'junit:junit:4.12'
47+
testCompile "org.mapdb:thread-weaver:3.0.mapdb"
48+
49+
// real examples
50+
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
51+
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
52+
53+
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
54+
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
55+
56+
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
57+
// except that these dependencies get remapped to your current MCP mappings
58+
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
59+
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
60+
61+
// for more info...
62+
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
63+
// http://www.gradle.org/docs/current/userguide/dependency_management.html
64+
65+
}
66+
67+
processResources {
68+
// this will ensure that this task is redone when the versions change.
69+
inputs.property "version", project.version
70+
inputs.property "mcversion", project.minecraft.version
71+
72+
// replace stuff in mcmod.info, nothing else
73+
from(sourceSets.main.resources.srcDirs) {
74+
include 'mcmod.info'
75+
76+
// replace version and mcversion
77+
expand 'version': project.version, 'mcversion': project.minecraft.version
78+
}
79+
80+
// copy everything else except the mcmod.info
81+
from(sourceSets.main.resources.srcDirs) {
82+
exclude 'mcmod.info'
83+
}
84+
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
2+
# This is required to provide enough memory for the Minecraft decompilation process.
3+
org.gradle.jvmargs=-Xmx3G

gradle/wrapper/gradle-wrapper.jar

52.1 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sun Jan 21 21:37:17 MSK 2018
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)