From eb4d47aa7450907d0a42aff9c9c665c45304c81f Mon Sep 17 00:00:00 2001 From: DaniD3v Date: Tue, 27 Aug 2024 23:05:52 +0200 Subject: [PATCH] Added an Enum for Biomes --- pumpkin-world/src/biome.rs | 9 +++++++++ pumpkin-world/src/lib.rs | 1 + 2 files changed, 10 insertions(+) create mode 100644 pumpkin-world/src/biome.rs diff --git a/pumpkin-world/src/biome.rs b/pumpkin-world/src/biome.rs new file mode 100644 index 000000000..3196e6ed6 --- /dev/null +++ b/pumpkin-world/src/biome.rs @@ -0,0 +1,9 @@ +use serde::{Deserialize, Serialize}; + +// TODO make this work with the protocol +#[derive(Serialize, Deserialize, Clone, Copy)] +#[non_exhaustive] +pub enum Biome { + Plains, + // TODO list all Biomes +} diff --git a/pumpkin-world/src/lib.rs b/pumpkin-world/src/lib.rs index b204eef2b..56462faf8 100644 --- a/pumpkin-world/src/lib.rs +++ b/pumpkin-world/src/lib.rs @@ -1,5 +1,6 @@ use level::Level; +pub mod biome; pub mod block; pub mod chunk; pub mod coordinates;