mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 02:10:24 +01:00
feat: redstone conductor & signal source
This commit is contained in:
parent
7e59603d5f
commit
4b31570c9d
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user