feat: redstone conductor & signal source

This commit is contained in:
mworzala 2024-03-14 22:04:03 -04:00
parent 7e59603d5f
commit 4b31570c9d
No known key found for this signature in database
GPG Key ID: B148F922E64797C7
2 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ metadata.format.version = "1.1"
[versions]
# Important dependencies
data = "1.20.4-rv3"
data = "1.20.4-rv4"
adventure = "4.15.0"
kotlin = "1.7.22"
dependencyGetter = "v1.0.1"

View File

@ -252,6 +252,8 @@ public final class Registry {
private final int blockEntityId;
private final Supplier<Material> materialSupplier;
private final Shape shape;
private final boolean redstoneConductor;
private final boolean signalSource;
private final Properties custom;
private BlockEntry(String namespace, Properties main, Properties custom) {
@ -290,6 +292,8 @@ public final class Registry {
final String occlusion = main.getString("occlusionShape");
this.shape = CollisionUtils.parseBlockShape(collision, occlusion, this);
}
this.redstoneConductor = main.getBoolean("redstoneConductor");
this.signalSource = main.getBoolean("signalSource", false);
}
public @NotNull NamespaceID namespace() {
@ -368,6 +372,14 @@ public final class Registry {
return materialSupplier.get();
}
public boolean isRedstoneConductor() {
return redstoneConductor;
}
public boolean isSignalSource() {
return signalSource;
}
public Shape collisionShape() {
return shape;
}