添加1024并行处理单元
This commit is contained in:
parent
8326410c8c
commit
eca8879841
|
|
@ -33,5 +33,9 @@ public final class ClientProxy {
|
||||||
BuiltInModelHooks.addBuiltInModel(
|
BuiltInModelHooks.addBuiltInModel(
|
||||||
ExtendedAEPlus.id("block/crafting/256x_accelerator_formed_v2"),
|
ExtendedAEPlus.id("block/crafting/256x_accelerator_formed_v2"),
|
||||||
new CraftingCubeModel(new EPlusCraftingCubeModelProvider(EPlusCraftingUnitType.ACCELERATOR_256x)));
|
new CraftingCubeModel(new EPlusCraftingCubeModelProvider(EPlusCraftingUnitType.ACCELERATOR_256x)));
|
||||||
|
|
||||||
|
BuiltInModelHooks.addBuiltInModel(
|
||||||
|
ExtendedAEPlus.id("block/crafting/1024x_accelerator_formed_v2"),
|
||||||
|
new CraftingCubeModel(new EPlusCraftingCubeModelProvider(EPlusCraftingUnitType.ACCELERATOR_1024x)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,8 @@ public class EPlusCraftingCubeModelProvider
|
||||||
"64x_accelerator_light");
|
"64x_accelerator_light");
|
||||||
protected static final Material ACCELERATOR_256X_LIGHT = texture(ExtendedAEPlus.MODID,
|
protected static final Material ACCELERATOR_256X_LIGHT = texture(ExtendedAEPlus.MODID,
|
||||||
"256x_accelerator_light");
|
"256x_accelerator_light");
|
||||||
|
protected static final Material ACCELERATOR_1024X_LIGHT = texture(ExtendedAEPlus.MODID,
|
||||||
|
"1024x_accelerator_light");
|
||||||
|
|
||||||
public EPlusCraftingCubeModelProvider(EPlusCraftingUnitType type) {
|
public EPlusCraftingCubeModelProvider(EPlusCraftingUnitType type) {
|
||||||
super(type);
|
super(type);
|
||||||
|
|
@ -74,6 +76,7 @@ public class EPlusCraftingCubeModelProvider
|
||||||
case ACCELERATOR_16x -> textureGetter.apply(ACCELERATOR_16X_LIGHT);
|
case ACCELERATOR_16x -> textureGetter.apply(ACCELERATOR_16X_LIGHT);
|
||||||
case ACCELERATOR_64x -> textureGetter.apply(ACCELERATOR_64X_LIGHT);
|
case ACCELERATOR_64x -> textureGetter.apply(ACCELERATOR_64X_LIGHT);
|
||||||
case ACCELERATOR_256x -> textureGetter.apply(ACCELERATOR_256X_LIGHT);
|
case ACCELERATOR_256x -> textureGetter.apply(ACCELERATOR_256X_LIGHT);
|
||||||
|
case ACCELERATOR_1024x -> textureGetter.apply(ACCELERATOR_1024X_LIGHT);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ public enum EPlusCraftingUnitType implements ICraftingUnitType {
|
||||||
ACCELERATOR_4x(0, 4),
|
ACCELERATOR_4x(0, 4),
|
||||||
ACCELERATOR_16x(0, 16),
|
ACCELERATOR_16x(0, 16),
|
||||||
ACCELERATOR_64x(0, 64),
|
ACCELERATOR_64x(0, 64),
|
||||||
ACCELERATOR_256x(0, 256);
|
ACCELERATOR_256x(0, 256),
|
||||||
|
ACCELERATOR_1024x(0, 1024);
|
||||||
|
|
||||||
private final long storage;
|
private final long storage;
|
||||||
private final int threads;
|
private final int threads;
|
||||||
|
|
@ -37,6 +38,7 @@ public enum EPlusCraftingUnitType implements ICraftingUnitType {
|
||||||
case ACCELERATOR_16x -> ModItems.ACCELERATOR_16x.get();
|
case ACCELERATOR_16x -> ModItems.ACCELERATOR_16x.get();
|
||||||
case ACCELERATOR_64x -> ModItems.ACCELERATOR_64x.get();
|
case ACCELERATOR_64x -> ModItems.ACCELERATOR_64x.get();
|
||||||
case ACCELERATOR_256x -> ModItems.ACCELERATOR_256x.get();
|
case ACCELERATOR_256x -> ModItems.ACCELERATOR_256x.get();
|
||||||
|
case ACCELERATOR_1024x -> ModItems.ACCELERATOR_1024x.get();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,4 +64,13 @@ public final class ModBlocks {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<CraftingUnitBlock> ACCELERATOR_1024x = BLOCKS.register(
|
||||||
|
"1024x_crafting_accelerator",
|
||||||
|
() -> {
|
||||||
|
var b = new CraftingUnitBlock(EPlusCraftingUnitType.ACCELERATOR_1024x);
|
||||||
|
b.setBlockEntity(CraftingBlockEntity.class, AEBlockEntities.CRAFTING_UNIT, null, null);
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ public final class ModCreativeTabs {
|
||||||
output.accept(ModItems.ACCELERATOR_16x.get());
|
output.accept(ModItems.ACCELERATOR_16x.get());
|
||||||
output.accept(ModItems.ACCELERATOR_64x.get());
|
output.accept(ModItems.ACCELERATOR_64x.get());
|
||||||
output.accept(ModItems.ACCELERATOR_256x.get());
|
output.accept(ModItems.ACCELERATOR_256x.get());
|
||||||
|
output.accept(ModItems.ACCELERATOR_1024x.get());
|
||||||
})
|
})
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,9 @@ public final class ModItems {
|
||||||
"256x_crafting_accelerator",
|
"256x_crafting_accelerator",
|
||||||
() -> new BlockItem(ModBlocks.ACCELERATOR_256x.get(), new Item.Properties())
|
() -> new BlockItem(ModBlocks.ACCELERATOR_256x.get(), new Item.Properties())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public static final RegistryObject<Item> ACCELERATOR_1024x = ITEMS.register(
|
||||||
|
"1024x_crafting_accelerator",
|
||||||
|
() -> new BlockItem(ModBlocks.ACCELERATOR_1024x.get(), new Item.Properties())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"formed=false": { "model": "extendedae_plus:block/crafting/1024x_accelerator" },
|
||||||
|
"formed=true": { "model": "extendedae_plus:block/crafting/1024x_accelerator_formed_v2" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -20,9 +20,11 @@
|
||||||
"block.extendedae_plus.16x_crafting_accelerator": "16x并行处理单元",
|
"block.extendedae_plus.16x_crafting_accelerator": "16x并行处理单元",
|
||||||
"block.extendedae_plus.64x_crafting_accelerator": "64x并行处理单元",
|
"block.extendedae_plus.64x_crafting_accelerator": "64x并行处理单元",
|
||||||
"block.extendedae_plus.256x_crafting_accelerator": "256x并行处理单元",
|
"block.extendedae_plus.256x_crafting_accelerator": "256x并行处理单元",
|
||||||
|
"block.extendedae_plus.1024x_crafting_accelerator": "1024x并行处理单元",
|
||||||
|
|
||||||
"item.extendedae_plus.4x_crafting_accelerator": "4x并行处理单元",
|
"item.extendedae_plus.4x_crafting_accelerator": "4x并行处理单元",
|
||||||
"item.extendedae_plus.16x_crafting_accelerator": "16x并行处理单元",
|
"item.extendedae_plus.16x_crafting_accelerator": "16x并行处理单元",
|
||||||
"item.extendedae_plus.64x_crafting_accelerator": "64x并行处理单元",
|
"item.extendedae_plus.64x_crafting_accelerator": "64x并行处理单元",
|
||||||
"item.extendedae_plus.256x_crafting_accelerator": "256x并行处理单元"
|
"item.extendedae_plus.256x_crafting_accelerator": "256x并行处理单元",
|
||||||
|
"item.extendedae_plus.1024x_crafting_accelerator": "1024x并行处理单元"
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:block/cube_all",
|
||||||
|
"textures": { "all": "extendedae_plus:block/crafting/1024x_accelerator" }
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
{ "parent": "extendedae_plus:block/crafting/1024x_accelerator" }
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 794 B |
Binary file not shown.
|
After Width: | Height: | Size: 183 B |
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 179 B |
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"pattern": [
|
||||||
|
" ",
|
||||||
|
"ACA",
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"A": { "item": "ae2:cell_component_256k" },
|
||||||
|
"C": { "item": "extendedae_plus:256x_crafting_accelerator" }
|
||||||
|
},
|
||||||
|
"result": { "item": "extendedae_plus:1024x_crafting_accelerator", "count": 1 }
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user