From 64907ebb34b3d799ea19cddda181b8c1cf50871f Mon Sep 17 00:00:00 2001 From: TheMode Date: Fri, 11 Jun 2021 17:23:38 +0200 Subject: [PATCH] Added some properties to BlockEntry --- .../minestom/server/registry/Registry.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/net/minestom/server/registry/Registry.java b/src/main/java/net/minestom/server/registry/Registry.java index e88a1a723..ca3e57e83 100644 --- a/src/main/java/net/minestom/server/registry/Registry.java +++ b/src/main/java/net/minestom/server/registry/Registry.java @@ -13,6 +13,26 @@ public class Registry { super(resource); } + public float destroySpeed() { + return getFloat("destroySpeed"); + } + + public float explosionResistance() { + return getFloat("explosionResistance"); + } + + public float friction() { + return getFloat("friction"); + } + + public float speedFactor() { + return getFloat("speedFactor"); + } + + public float jumpFactor() { + return getFloat("jumpFactor"); + } + public boolean isSolid() { return getBoolean("solid"); } @@ -30,6 +50,10 @@ public class Registry { return null; } + public float getFloat(String path) { + return 0; + } + public int getInt(String path) { return 0; }