mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-03 12:49:11 +00:00
Bump to 1.14.1
This commit is contained in:
parent
b11d4bb209
commit
3192dc81ac
41
build.gradle
41
build.gradle
@ -7,7 +7,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '0.2.2-SNAPSHOT'
|
id 'fabric-loom' version '0.2.3-SNAPSHOT'
|
||||||
id 'com.matthewprenger.cursegradle' version '1.2.0'
|
id 'com.matthewprenger.cursegradle' version '1.2.0'
|
||||||
id "com.github.breadmoirai.github-release" version "2.2.4"
|
id "com.github.breadmoirai.github-release" version "2.2.4"
|
||||||
}
|
}
|
||||||
@ -53,22 +53,9 @@ configurations {
|
|||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:${mc_version}"
|
minecraft "com.mojang:minecraft:${mc_version}"
|
||||||
mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}"
|
mappings "net.fabricmc:yarn:${mc_version}+build.${mappings_version}"
|
||||||
|
// modCompile "net.fabricmc:fabric-loader:0.4.6+build.143"
|
||||||
modCompile "net.fabricmc:fabric-loader:0.4.6+build.141"
|
modCompile "net.fabricmc:fabric-loader:0.4.6+build.141"
|
||||||
modCompile "net.fabricmc:fabric:0.2.7+build.126"
|
modCompile "net.fabricmc.fabric-api:fabric-api:0.3.0-pre+build.156"
|
||||||
|
|
||||||
/*
|
|
||||||
modCompile "net.fabricmc:fabric-lib:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-networking:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-networking-blockentity:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-object-builders:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-containers:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-item-groups:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-client-registries:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-commands:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-events-lifecycle:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-events-interaction:0.1.0"
|
|
||||||
modCompile "net.fabricmc:fabric-resource-loader:0.1.0"
|
|
||||||
*/
|
|
||||||
|
|
||||||
implementation 'com.google.code.findbugs:jsr305:3.0.2'
|
implementation 'com.google.code.findbugs:jsr305:3.0.2'
|
||||||
|
|
||||||
@ -126,8 +113,11 @@ task proguard(type: ProGuardTask, dependsOn: jar) {
|
|||||||
description "Removes unused shadowed classes from the jar"
|
description "Removes unused shadowed classes from the jar"
|
||||||
group "compact"
|
group "compact"
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
// Fabric changes the jar's classifier so we to do this after evaluating!
|
||||||
injars jar.archivePath
|
injars jar.archivePath
|
||||||
outjars "${jar.archivePath.absolutePath.replace(".jar", "")}-min.jar"
|
outjars "${jar.archivePath.absolutePath.replace(".jar", "")}-min.jar"
|
||||||
|
}
|
||||||
|
|
||||||
// Add the main runtime jar and all non-shadowed dependencies
|
// Add the main runtime jar and all non-shadowed dependencies
|
||||||
libraryjars "${System.getProperty('java.home')}/lib/rt.jar"
|
libraryjars "${System.getProperty('java.home')}/lib/rt.jar"
|
||||||
@ -167,7 +157,7 @@ task proguardMove(dependsOn: proguard) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remapJar.dependsOn proguardMove
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", mod_version
|
inputs.property "version", mod_version
|
||||||
@ -203,7 +193,7 @@ processResources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task compressJson(dependsOn: jar) {
|
task compressJson(dependsOn: remapJar) {
|
||||||
group "compact"
|
group "compact"
|
||||||
description "Minifies all JSON files, stripping whitespace"
|
description "Minifies all JSON files, stripping whitespace"
|
||||||
|
|
||||||
@ -249,13 +239,22 @@ curseforge {
|
|||||||
apiKey = project.hasProperty('curseForgeApiKey') ? project.curseForgeApiKey : ''
|
apiKey = project.hasProperty('curseForgeApiKey') ? project.curseForgeApiKey : ''
|
||||||
project {
|
project {
|
||||||
id = '282001'
|
id = '282001'
|
||||||
addGameVersion '1.14-Snapshot'
|
addGameVersion '1.14.1'
|
||||||
releaseType = 'beta'
|
releaseType = 'beta'
|
||||||
changelog = "Release notes can be found on the GitHub repository (https://github.com/SquidDev-CC/CC-Tweaked/releases/tag/v${mc_version}-${mod_version})."
|
changelog = "Release notes can be found on the GitHub repository (https://github.com/SquidDev-CC/CC-Tweaked/releases/tag/v${mc_version}-${mod_version})."
|
||||||
|
|
||||||
relations {
|
relations {
|
||||||
incompatible "computercraft"
|
incompatible "computercraft"
|
||||||
|
requiredDependency "fabric"
|
||||||
}
|
}
|
||||||
|
afterEvaluate {
|
||||||
|
mainArtifact(remapJar.output)
|
||||||
|
uploadTask.dependsOn(remapJar)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
options {
|
||||||
|
forgeGradleIntegration = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +325,7 @@ githubRelease {
|
|||||||
releaseAssets.from(jar.archivePath)
|
releaseAssets.from(jar.archivePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
task uploadAll(dependsOn: [uploadArchives, "curseforge", "githubRelease"]) {
|
task uploadAll(dependsOn: [remapJar, uploadArchives, "curseforge", "githubRelease"]) {
|
||||||
group "upload"
|
group "upload"
|
||||||
description "Uploads to all repositories (Maven, Curse, GitHub release)"
|
description "Uploads to all repositories (Maven, Curse, GitHub release)"
|
||||||
}
|
}
|
||||||
@ -339,8 +338,6 @@ test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
gradle.projectsEvaluated {
|
||||||
remapJar.dependsOn proguardMove
|
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs << "-Xlint" << "-Xlint:-processing" // Causes Forge build to fail << "-Werror"
|
options.compilerArgs << "-Xlint" << "-Xlint:-processing" // Causes Forge build to fail << "-Werror"
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
mod_version=1.82.4
|
mod_version=1.82.4
|
||||||
|
|
||||||
# Minecraft properties
|
# Minecraft properties
|
||||||
mc_version=1.14.1 Pre-Release 1
|
mc_version=1.14.1
|
||||||
mappings_version=1
|
mappings_version=5
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
package dan200.computercraft.shared.computer.core;
|
package dan200.computercraft.shared.computer.core;
|
||||||
|
|
||||||
import net.minecraft.util.SnakeCaseIdentifiable;
|
import net.minecraft.util.StringIdentifiable;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
public enum ComputerState implements SnakeCaseIdentifiable
|
public enum ComputerState implements StringIdentifiable
|
||||||
{
|
{
|
||||||
OFF( "off" ),
|
OFF( "off" ),
|
||||||
ON( "on" ),
|
ON( "on" ),
|
||||||
@ -25,7 +25,7 @@ public enum ComputerState implements SnakeCaseIdentifiable
|
|||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public String toSnakeCase()
|
public String asString()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
package dan200.computercraft.shared.peripheral.diskdrive;
|
package dan200.computercraft.shared.peripheral.diskdrive;
|
||||||
|
|
||||||
import net.minecraft.util.SnakeCaseIdentifiable;
|
import net.minecraft.util.StringIdentifiable;
|
||||||
|
|
||||||
public enum DiskDriveState implements SnakeCaseIdentifiable
|
public enum DiskDriveState implements StringIdentifiable
|
||||||
{
|
{
|
||||||
EMPTY( "empty" ),
|
EMPTY( "empty" ),
|
||||||
FULL( "full" ),
|
FULL( "full" ),
|
||||||
@ -23,7 +23,7 @@ public enum DiskDriveState implements SnakeCaseIdentifiable
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toSnakeCase()
|
public String asString()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
package dan200.computercraft.shared.peripheral.modem.wired;
|
package dan200.computercraft.shared.peripheral.modem.wired;
|
||||||
|
|
||||||
import net.minecraft.util.SnakeCaseIdentifiable;
|
import net.minecraft.util.StringIdentifiable;
|
||||||
import net.minecraft.util.math.Direction;
|
import net.minecraft.util.math.Direction;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
public enum CableModemVariant implements SnakeCaseIdentifiable
|
public enum CableModemVariant implements StringIdentifiable
|
||||||
{
|
{
|
||||||
None( "none", null ),
|
None( "none", null ),
|
||||||
DownOff( "down_off", Direction.DOWN ),
|
DownOff( "down_off", Direction.DOWN ),
|
||||||
@ -65,7 +65,7 @@ public enum CableModemVariant implements SnakeCaseIdentifiable
|
|||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public String toSnakeCase()
|
public String asString()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
package dan200.computercraft.shared.peripheral.monitor;
|
package dan200.computercraft.shared.peripheral.monitor;
|
||||||
|
|
||||||
import net.minecraft.util.SnakeCaseIdentifiable;
|
import net.minecraft.util.StringIdentifiable;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import static dan200.computercraft.shared.peripheral.monitor.MonitorEdgeState.Flags.*;
|
import static dan200.computercraft.shared.peripheral.monitor.MonitorEdgeState.Flags.*;
|
||||||
|
|
||||||
public enum MonitorEdgeState implements SnakeCaseIdentifiable
|
public enum MonitorEdgeState implements StringIdentifiable
|
||||||
{
|
{
|
||||||
NONE( "none", 0 ),
|
NONE( "none", 0 ),
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ public enum MonitorEdgeState implements SnakeCaseIdentifiable
|
|||||||
|
|
||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public String toSnakeCase()
|
public String asString()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ public abstract class SpeakerPeripheral implements IPeripheral
|
|||||||
Instrument instrument = null;
|
Instrument instrument = null;
|
||||||
for( Instrument testInstrument : Instrument.values() )
|
for( Instrument testInstrument : Instrument.values() )
|
||||||
{
|
{
|
||||||
if( testInstrument.toSnakeCase().equalsIgnoreCase( name ) )
|
if( testInstrument.asString().equalsIgnoreCase( name ) )
|
||||||
{
|
{
|
||||||
instrument = testInstrument;
|
instrument = testInstrument;
|
||||||
break;
|
break;
|
||||||
|
@ -51,7 +51,7 @@ public final class NamedBlockEntityType<T extends BlockEntity> extends BlockEnti
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean method_20526( Block block )
|
public boolean supports( Block block )
|
||||||
{
|
{
|
||||||
return block == this.block;
|
return block == this.block;
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
"Aaron Mills",
|
"Aaron Mills",
|
||||||
"SquidDev"
|
"SquidDev"
|
||||||
],
|
],
|
||||||
|
"requires": {
|
||||||
|
"fabricloader": ">=0.4.0",
|
||||||
|
"fabric": "*"
|
||||||
|
},
|
||||||
|
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
|
Loading…
Reference in New Issue
Block a user