超级装配矩阵速度核心
This commit is contained in:
parent
6e582f8d4e
commit
08277b1df9
|
|
@ -80,6 +80,13 @@ public class ExtendedAEPlus {
|
|||
null,
|
||||
null
|
||||
);
|
||||
|
||||
ModBlocks.ASSEMBLER_MATRIX_SPEED_PLUS.get().setBlockEntity(
|
||||
com.extendedae_plus.content.matrix.SpeedCorePlusBlockEntity.class,
|
||||
ModBlockEntities.ASSEMBLER_MATRIX_SPEED_PLUS_BE.get(),
|
||||
null,
|
||||
null
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
package com.extendedae_plus.content.matrix;
|
||||
|
||||
import com.extendedae_plus.init.ModItems;
|
||||
import com.glodblock.github.extendedae.common.blocks.matrix.BlockAssemblerMatrixBase;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
|
||||
public class SpeedCorePlusBlock extends BlockAssemblerMatrixBase<SpeedCorePlusBlockEntity> {
|
||||
|
||||
public SpeedCorePlusBlock() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SpeedCorePlusBlock(BlockBehaviour.Properties props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getPresentItem() {
|
||||
return ModItems.ASSEMBLER_MATRIX_SPEED_PLUS.get();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.extendedae_plus.content.matrix;
|
||||
|
||||
import com.extendedae_plus.init.ModBlockEntities;
|
||||
import com.glodblock.github.extendedae.common.me.matrix.ClusterAssemblerMatrix;
|
||||
import com.glodblock.github.extendedae.common.tileentities.matrix.TileAssemblerMatrixFunction;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
public class SpeedCorePlusBlockEntity extends TileAssemblerMatrixFunction {
|
||||
|
||||
public SpeedCorePlusBlockEntity(BlockPos pos, BlockState blockState) {
|
||||
super(ModBlockEntities.ASSEMBLER_MATRIX_SPEED_PLUS_BE.get(), pos, blockState);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(ClusterAssemblerMatrix cluster) {
|
||||
if (cluster == null) {
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < 5; i++) {
|
||||
cluster.addSpeedCore();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,12 @@
|
|||
package com.extendedae_plus.init;
|
||||
|
||||
import com.extendedae_plus.ExtendedAEPlus;
|
||||
import com.extendedae_plus.content.matrix.SpeedCorePlusBlockEntity;
|
||||
import com.extendedae_plus.content.wireless.WirelessTransceiverBlockEntity;
|
||||
import com.extendedae_plus.content.matrix.UploadCoreBlockEntity;
|
||||
import com.extendedae_plus.content.controller.NetworkPatternControllerBlockEntity;
|
||||
import net.minecraft.world.level.block.entity.BlockEntityType;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
import net.minecraftforge.registries.RegistryObject;
|
||||
|
|
@ -25,6 +27,11 @@ public final class ModBlockEntities {
|
|||
() -> BlockEntityType.Builder.of(NetworkPatternControllerBlockEntity::new,
|
||||
ModBlocks.NETWORK_PATTERN_CONTROLLER.get()).build(null));
|
||||
|
||||
public static final RegistryObject<BlockEntityType<SpeedCorePlusBlockEntity>> ASSEMBLER_MATRIX_SPEED_PLUS_BE =
|
||||
BLOCK_ENTITY_TYPES.register("assembler_matrix_speed_plus",
|
||||
()-> BlockEntityType.Builder.of(SpeedCorePlusBlockEntity::new,
|
||||
ModBlocks.ASSEMBLER_MATRIX_SPEED_PLUS.get()).build(null));
|
||||
|
||||
// 装配矩阵上传核心
|
||||
public static final RegistryObject<BlockEntityType<UploadCoreBlockEntity>> UPLOAD_CORE_BE =
|
||||
BLOCK_ENTITY_TYPES.register("assembler_matrix_upload_core",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import appeng.blockentity.crafting.CraftingBlockEntity;
|
|||
import appeng.core.definitions.AEBlockEntities;
|
||||
import com.extendedae_plus.ExtendedAEPlus;
|
||||
import com.extendedae_plus.content.crafting.EPlusCraftingUnitType;
|
||||
import com.extendedae_plus.content.matrix.SpeedCorePlusBlock;
|
||||
import com.extendedae_plus.content.matrix.UploadCoreBlock;
|
||||
import com.extendedae_plus.content.wireless.WirelessTransceiverBlock;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
|
@ -50,6 +51,12 @@ public final class ModBlocks {
|
|||
}
|
||||
);
|
||||
|
||||
// 装配矩阵速度核心 Plus(内部功能块)
|
||||
public static final RegistryObject<SpeedCorePlusBlock> ASSEMBLER_MATRIX_SPEED_PLUS = BLOCKS.register(
|
||||
"assembler_matrix_speed_plus",
|
||||
SpeedCorePlusBlock::new
|
||||
);
|
||||
|
||||
// Crafting Accelerators (reuse MAE2 textures/models)
|
||||
public static final RegistryObject<CraftingUnitBlock> CRAFTING_ACCELERATOR_4x = BLOCKS.register(
|
||||
"4x_crafting_accelerator",
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ public final class ModCreativeTabs {
|
|||
output.accept(ModItems.NETWORK_PATTERN_CONTROLLER.get());
|
||||
// 装配矩阵上传核心
|
||||
output.accept(ModItems.ASSEMBLER_MATRIX_UPLOAD_CORE.get());
|
||||
//超级装配矩阵速度核心
|
||||
output.accept(ModItems.ASSEMBLER_MATRIX_SPEED_PLUS.get());
|
||||
|
||||
//实体加速器&加速卡
|
||||
output.accept(ModItems.CRAFTING_ACCELERATOR_4x.get());
|
||||
output.accept(ModItems.CRAFTING_ACCELERATOR_16x.get());
|
||||
output.accept(ModItems.CRAFTING_ACCELERATOR_64x.get());
|
||||
|
|
|
|||
|
|
@ -37,6 +37,11 @@ public final class ModItems {
|
|||
() -> new BlockItem(ModBlocks.ASSEMBLER_MATRIX_UPLOAD_CORE.get(), new Item.Properties())
|
||||
);
|
||||
|
||||
public static final RegistryObject<Item> ASSEMBLER_MATRIX_SPEED_PLUS = ITEMS.register(
|
||||
"assembler_matrix_speed_plus",
|
||||
()-> new BlockItem(ModBlocks.ASSEMBLER_MATRIX_SPEED_PLUS.get(), new Item.Properties())
|
||||
);
|
||||
|
||||
// Crafting Accelerators
|
||||
public static final RegistryObject<Item> CRAFTING_ACCELERATOR_4x = ITEMS.register(
|
||||
"4x_crafting_accelerator",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"": { "model": "extendedae_plus:block/assembler_matrix_speed_plus" }
|
||||
}
|
||||
}
|
||||
|
|
@ -67,6 +67,7 @@
|
|||
"block.extendedae_plus.1024x_crafting_accelerator": "1024x Crafting Accelerator",
|
||||
"block.extendedae_plus.network_pattern_controller": "Pattern Supplier State Controller",
|
||||
"block.extendedae_plus.assembler_matrix_upload_core": "Assembler Matrix Upload Core",
|
||||
"block.extendedae_plus.assembler_matrix_speed_plus": "Assembler Matrix Speed Core Plus",
|
||||
|
||||
"extendedae_plus.upload_to_matrix": "Upload to Assembly Matrix",
|
||||
"extendedae_plus.upload_to_matrix.success": "Pattern uploaded to the assembly matrix",
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@
|
|||
"block.extendedae_plus.1024x_crafting_accelerator": "1024x并行处理单元",
|
||||
"block.extendedae_plus.network_pattern_controller": "样板供应器状态控制器",
|
||||
"block.extendedae_plus.assembler_matrix_upload_core": "装配矩阵上传核心",
|
||||
"block.extendedae_plus.assembler_matrix_speed_plus": "超级装配矩阵速度核心",
|
||||
|
||||
"extendedae_plus.upload_to_matrix": "上传到装配矩阵",
|
||||
"extendedae_plus.upload_to_matrix.success": "样板已上传到装配矩阵",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "extendedae_plus:block/assembler_matrix_speed_plus"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "extendedae_plus:block/assembler_matrix_speed_plus"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 250 B |
Loading…
Reference in New Issue
Block a user