Pumpkin/pumpkin/src/block/blocks/redstone/redstone_block.rs
2025-07-29 12:19:05 +02:00

19 lines
486 B
Rust

use async_trait::async_trait;
use pumpkin_macros::pumpkin_block;
use crate::block::{BlockBehaviour, EmitsRedstonePowerArgs, GetRedstonePowerArgs};
#[pumpkin_block("minecraft:redstone_block")]
pub struct RedstoneBlock;
#[async_trait]
impl BlockBehaviour for RedstoneBlock {
async fn get_weak_redstone_power(&self, _args: GetRedstonePowerArgs<'_>) -> u8 {
15
}
async fn emits_redstone_power(&self, _args: EmitsRedstonePowerArgs<'_>) -> bool {
true
}
}