implement BlockState with mixin on Fabric

This commit is contained in:
dfsek
2021-12-21 13:09:40 -07:00
parent 1a1016bdf8
commit 5dbc2c2895
25 changed files with 204 additions and 253 deletions

View File

@@ -42,17 +42,17 @@ public class SpongeBlockState implements BlockState {
}
@Override
public <T> boolean has(Property<T> property) {
public <T extends Comparable<T>> boolean has(Property<T> property) {
return false;
}
@Override
public <T> T get(Property<T> property) {
public <T extends Comparable<T>> T get(Property<T> property) {
return null;
}
@Override
public <T> BlockState set(Property<T> property, T value) {
public <T extends Comparable<T>> BlockState set(Property<T> property, T value) {
return this;
}
@@ -62,7 +62,7 @@ public class SpongeBlockState implements BlockState {
}
@Override
public String getAsString() {
public String getAsString(boolean verbose) {
return delegate.toString();
}