9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-06 15:52:03 +00:00

Merge pull request #370 from jhqwqmc/dev

feat(block): 添加台灯
This commit is contained in:
XiaoMoMi
2025-09-12 20:36:58 +08:00
committed by GitHub
9 changed files with 149 additions and 67 deletions

View File

@@ -18,4 +18,9 @@ public interface EntityBlockBehavior {
default <T extends BlockEntity> BlockEntityTicker<T> createBlockEntityTicker(CEWorld level, ImmutableBlockState state, BlockEntityType<T> blockEntityType) {
return null;
}
@SuppressWarnings("unchecked")
static <E extends BlockEntity> BlockEntityTicker<E> createTickerHelper(BlockEntityTicker<? super E> ticker) {
return (BlockEntityTicker<E>) ticker;
}
}

View File

@@ -7,4 +7,5 @@ public final class BlockEntityTypeKeys {
public static final Key UNSAFE_COMPOSITE = Key.of("craftengine:unsafe_composite");
public static final Key SIMPLE_STORAGE = Key.of("craftengine:simple_storage");
public static final Key SEAT = Key.of("craftengine:seat");
}