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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user