Skip to content

Commit 3ebe2bf

Browse files
committed
fixed some of #66 problems
1 parent 9cf2d8a commit 3ebe2bf

4 files changed

Lines changed: 3 additions & 17 deletions

File tree

src/client/java/com/tcm/MineTale/MineTaleClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public void onInitializeClient() {
4141
MenuScreens.register(ModMenuTypes.BUILDERS_WORKBENCH_MENU, BuildersWorkbenchScreen::new);
4242
MenuScreens.register(ModMenuTypes.BLACKSMITHS_WORKBENCH_MENU, BlacksmithsWorkbenchScreen::new);
4343
MenuScreens.register(ModMenuTypes.FURNITURE_WORKBENCH_MENU, FurnitureWorkbenchScreen::new);
44+
MenuScreens.register(ModMenuTypes.ALCHEMISTS_WORKBENCH_MENU, AlchemistsWorkbenchScreen::new);
4445

4546
BlockRenderLayerMap.putBlock(ModBlocks.FURNACE_WORKBENCH_BLOCK_T1, ChunkSectionLayer.CUTOUT);
4647
BlockRenderLayerMap.putBlock(ModBlocks.FURNACE_WORKBENCH_BLOCK_T2, ChunkSectionLayer.CUTOUT);

src/client/java/com/tcm/MineTale/datagen/ModLangProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public void generateTranslations(HolderLookup.Provider wrapperLookup, Translatio
272272
translationBuilder.add("item.minetale.essence_of_the_void", "Essence of the Void");
273273
translationBuilder.add("item.minetale.void_heart", "Void Heart");
274274
translationBuilder.add("item.minetale.empty_potion_bottle", "Empty Potion Bottle");
275-
translationBuilder.add("item.minetale.antitode", "Antidote");
275+
translationBuilder.add("item.minetale.antidote", "Antidote");
276276
translationBuilder.add("item.minetale.boom_powder", "Boom Powder");
277277
translationBuilder.add("item.minetale.popberry_bomb", "Popberry Bomb");
278278

src/client/java/com/tcm/MineTale/datagen/ModModelProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public void generateItemModels(ItemModelGenerators itemModelGenerators) {
136136
itemModelGenerators.generateFlatItem(ModItems.POOP, ModelTemplates.FLAT_HANDHELD_ITEM);
137137
itemModelGenerators.generateFlatItem(ModItems.EMPTY_POTION_BOTTLE, ModelTemplates.FLAT_HANDHELD_ITEM);
138138
itemModelGenerators.generateFlatItem(ModItems.ANTIDOTE, ModelTemplates.FLAT_HANDHELD_ITEM);
139+
itemModelGenerators.generateFlatItem(ModItems.BOOM_POWDER, ModelTemplates.FLAT_HANDHELD_ITEM);
139140
itemModelGenerators.generateFlatItem(ModItems.POPBERRY_BOMB, ModelTemplates.FLAT_HANDHELD_ITEM);
140141

141142
}

src/main/java/com/tcm/MineTale/block/workbenches/AlchemistsWorkbench.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,11 @@ public class AlchemistsWorkbench extends AbstractWorkbench<AlchemistsWorkbenchEn
2525

2626
public static final MapCodec<AlchemistsWorkbench> CODEC = simpleCodec(AlchemistsWorkbench::new);
2727

28-
/**
29-
* Constructs a ArmorersWorkbench that uses the mod's ARMORERS_WORKBENCH block entity type.
30-
*
31-
* @param properties block properties for this workbench
32-
*/
3328
public AlchemistsWorkbench(Properties properties) {
3429
// Hardcode the supplier and sounds here if they never change
3530
super(properties, () -> ModBlockEntities.ALCHEMISTS_WORKBENCH_BE, IS_WIDE, IS_TALL, 1);
3631
}
3732

38-
/**
39-
* Constructs a ArmorersWorkbench using the provided block properties and block-entity type supplier.
40-
*
41-
* @param properties block properties to apply to this workbench
42-
* @param supplier supplier that provides the BlockEntityType for the ArmorersWorkbenchEntity
43-
*/
4433
public AlchemistsWorkbench(Properties properties, Supplier<BlockEntityType<? extends AlchemistsWorkbenchEntity>> supplier) {
4534
super(properties, supplier, IS_WIDE, IS_TALL, 1);
4635
}
@@ -58,11 +47,6 @@ public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, Block
5847
return createTickerHelper(type, ModBlockEntities.ALCHEMISTS_WORKBENCH_BE, AbstractWorkbenchEntity::tick);
5948
}
6049

61-
/**
62-
* Provides the MapCodec used to serialize and deserialize this workbench.
63-
*
64-
* @return the MapCodec for this ArmorersWorkbench
65-
*/
6650
@Override
6751
protected MapCodec<? extends AlchemistsWorkbench> codec() {
6852
return CODEC;

0 commit comments

Comments
 (0)