9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-28 03:19:14 +00:00

feat(block): 添加座椅方块

This commit is contained in:
jhqwqmc
2025-09-12 13:21:41 +08:00
parent c285e6be78
commit f724faaf86
8 changed files with 277 additions and 4 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, A extends BlockEntity> BlockEntityTicker<A> createTickerHelper(BlockEntityTicker<? super E> ticker) {
return (BlockEntityTicker<A>) 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");
}