aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/src/behavior.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-06-17 23:10:54 +0000
committerGitHub <noreply@github.com>2022-06-17 23:10:54 +0000
commitf414aa4d37e0c6a7adf55b772fa93714be6e9c9c (patch)
tree8cfb7d33114b9537b50477d5d6980995eec6cc5c /azalea-block/src/behavior.rs
parent56f98c1b243d1ba8906ac73a2f2d8eec5646183e (diff)
parent0a945e73ec43b3b0389e004e138c83f41cddc532 (diff)
downloadazalea-drasl-f414aa4d37e0c6a7adf55b772fa93714be6e9c9c.tar.xz
Merge pull request #9 from mat-1/azalea-block
azalea-block
Diffstat (limited to 'azalea-block/src/behavior.rs')
-rw-r--r--azalea-block/src/behavior.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/azalea-block/src/behavior.rs b/azalea-block/src/behavior.rs
new file mode 100644
index 00000000..949f3bd8
--- /dev/null
+++ b/azalea-block/src/behavior.rs
@@ -0,0 +1,12 @@
+#[derive(Default)]
+pub struct BlockBehavior {
+ pub has_collision: bool,
+}
+
+impl BlockBehavior {
+ #[inline]
+ pub fn no_collision(mut self) -> Self {
+ self.has_collision = false;
+ self
+ }
+}