Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Make it actually load into an IDE on latest FG
Dieser Commit ist enthalten in:
Ursprung
e4ce51003e
Commit
d079f06c31
3
gradle.properties
Normale Datei
3
gradle.properties
Normale Datei
@ -0,0 +1,3 @@
|
|||||||
|
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
|
||||||
|
# This is required to provide enough memory for the Minecraft decompilation process.
|
||||||
|
org.gradle.jvmargs=-Xmx3G
|
@ -14,7 +14,7 @@ buildscript {
|
|||||||
apply plugin: 'net.minecraftforge.gradle'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
|
|
||||||
def minecraftVersion = "1.13"
|
def minecraftVersion = "1.13"
|
||||||
def forgeVersion = "24.0.116-1.13-pre"
|
def forgeVersion = "24.0.136-1.13-pre"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':worldedit-core')
|
compile project(':worldedit-core')
|
||||||
@ -30,6 +30,25 @@ targetCompatibility = 1.8
|
|||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'snapshot', version: '20180921-1.13'
|
mappings channel: 'snapshot', version: '20180921-1.13'
|
||||||
|
|
||||||
|
runs {
|
||||||
|
client = {
|
||||||
|
// recommended logging data for a userdev environment
|
||||||
|
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
|
||||||
|
// recommended logging level for the console
|
||||||
|
properties 'forge.logging.console.level': 'debug'
|
||||||
|
workingDirectory project.file('run').canonicalPath
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
server = {
|
||||||
|
// recommended logging data for a userdev environment
|
||||||
|
properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
|
||||||
|
// recommended logging level for the console
|
||||||
|
properties 'forge.logging.console.level': 'debug'
|
||||||
|
workingDirectory project.file('run').canonicalPath
|
||||||
|
source sourceSets.main
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
accessTransformer = file('worldedit_at.cfg')
|
accessTransformer = file('worldedit_at.cfg')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,11 +88,13 @@ shadowJar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//reobf {
|
afterEvaluate {
|
||||||
// shadowJar {
|
reobf {
|
||||||
// mappingType = 'SEARGE'
|
shadowJar {
|
||||||
// }
|
mappings = createMcpToSrg.output
|
||||||
//}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task deobfJar(type: Jar) {
|
task deobfJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
|
@ -30,6 +30,7 @@ import com.sk89q.worldedit.util.Location;
|
|||||||
import com.sk89q.worldedit.world.NullWorld;
|
import com.sk89q.worldedit.world.NullWorld;
|
||||||
import com.sk89q.worldedit.world.entity.EntityTypes;
|
import com.sk89q.worldedit.world.entity.EntityTypes;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
|
|
||||||
@ -48,11 +49,11 @@ class ForgeEntity implements Entity {
|
|||||||
public BaseEntity getState() {
|
public BaseEntity getState() {
|
||||||
net.minecraft.entity.Entity entity = entityRef.get();
|
net.minecraft.entity.Entity entity = entityRef.get();
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
String id = entity.getType().getRegistryName().toString();
|
ResourceLocation id = entity.getType().getRegistryName();
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
entity.writeWithoutTypeId(tag);
|
entity.writeWithoutTypeId(tag);
|
||||||
return new BaseEntity(EntityTypes.get(id), NBTConverter.fromNative(tag));
|
return new BaseEntity(EntityTypes.get(id.toString()), NBTConverter.fromNative(tag));
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren