Update UnpickTest to latest snapshot.
This ensures that constants included in the mc jar can be used.dev/0.11
parent
153afc1418
commit
93afc7574d
|
@ -33,7 +33,7 @@ import java.nio.charset.StandardCharsets
|
||||||
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
|
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
|
||||||
|
|
||||||
class UnpickTest extends Specification implements ProjectTestTrait {
|
class UnpickTest extends Specification implements ProjectTestTrait {
|
||||||
static final String MAPPINGS = "21w11a-mapped-net.fabricmc.yarn-21w11a+build.22-v2"
|
static final String MAPPINGS = "21w13a-mapped-net.fabricmc.yarn-21w13a+build.30-v2"
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
String name() {
|
String name() {
|
||||||
|
@ -45,7 +45,7 @@ class UnpickTest extends Specification implements ProjectTestTrait {
|
||||||
def result = create("genSources")
|
def result = create("genSources")
|
||||||
then:
|
then:
|
||||||
result.task(":genSources").outcome == SUCCESS
|
result.task(":genSources").outcome == SUCCESS
|
||||||
getClassSource("net/minecraft/block/CakeBlock.java").contains("SetBlockStateFlags.PROPAGATE_CHANGE | SetBlockStateFlags.NOTIFY_LISTENERS")
|
getClassSource("net/minecraft/block/CakeBlock.java").contains("Block.DEFAULT_SET_BLOCK_STATE_FLAG")
|
||||||
}
|
}
|
||||||
|
|
||||||
def "unpick build"() {
|
def "unpick build"() {
|
||||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:21w11a"
|
minecraft "com.mojang:minecraft:21w13a"
|
||||||
mappings "net.fabricmc:yarn:21w11a+build.22:v2"
|
mappings "net.fabricmc:yarn:21w13a+build.30:v2"
|
||||||
modImplementation "net.fabricmc:fabric-loader:0.11.2"
|
modImplementation "net.fabricmc:fabric-loader:0.11.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ModInitializer;
|
||||||
import net.fabricmc.yarn.constants.SetBlockStateFlags;
|
import net.fabricmc.yarn.constants.CatTypes;
|
||||||
|
|
||||||
public class ExampleMod implements ModInitializer {
|
public class ExampleMod implements ModInitializer {
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
// Just enough to make sure it can compile against the flags
|
// Just enough to make sure it can compile against the flags
|
||||||
System.out.println(SetBlockStateFlags.PROPAGATE_CHANGE);
|
System.out.println(CatTypes.TABBY);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue