mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
update mockbukkit
This commit is contained in:
parent
a08fb3ac75
commit
8dbfeec2fa
2 changed files with 11 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ plugins {
|
||||||
signing
|
signing
|
||||||
id("cn.lalaki.central").version("1.2.5")
|
id("cn.lalaki.central").version("1.2.5")
|
||||||
// Paper
|
// Paper
|
||||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.14" apply false
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.16" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "xyz.alexcrea"
|
group = "xyz.alexcrea"
|
||||||
|
|
@ -72,7 +72,7 @@ dependencies {
|
||||||
implementation(kotlin("stdlib"))
|
implementation(kotlin("stdlib"))
|
||||||
|
|
||||||
// Test dependency
|
// Test dependency
|
||||||
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.37.0")
|
testImplementation("org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.45.1")
|
||||||
testRuntimeOnly("commons-lang:commons-lang:2.6")
|
testRuntimeOnly("commons-lang:commons-lang:2.6")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,8 +94,9 @@ allprojects {
|
||||||
compileOnly(kotlin("stdlib"))
|
compileOnly(kotlin("stdlib"))
|
||||||
|
|
||||||
// Test dependency
|
// Test dependency
|
||||||
testImplementation(platform("org.junit:junit-bom:5.11.3"))
|
testImplementation(platform("org.junit:junit-bom:5.12.2"))
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||||
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.getByName<Test>("test") {
|
tasks.getByName<Test>("test") {
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,12 @@ public class AnvilViewMock extends PlayerInventoryViewMock implements AnvilView
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean bypassesEnchantmentLevelRestriction() {
|
public boolean bypassesEnchantmentLevelRestriction() {
|
||||||
throw new UnsupportedOperationException("Custom anvil was not think with this existing");
|
throw new UnsupportedOperationException("This is currently is not used in CustomAnvil");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void bypassEnchantmentLevelRestriction(boolean bypassEnchantmentLevelRestriction) {
|
public void bypassEnchantmentLevelRestriction(boolean bypassEnchantmentLevelRestriction) {
|
||||||
throw new UnsupportedOperationException("Custom anvil was not think with this existing");
|
throw new UnsupportedOperationException("This is currently is not used in CustomAnvil");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -73,4 +73,9 @@ public class AnvilViewMock extends PlayerInventoryViewMock implements AnvilView
|
||||||
return top;
|
return top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void open() {
|
||||||
|
throw new UnsupportedOperationException("This is currently is not used in CustomAnvil");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue