Skip to content

Commit a4d4434

Browse files
committed
use the multiversion stuff
1 parent c777c63 commit a4d4434

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/net/anawesomguy/wsmlmb/test/WSMLMBTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package net.anawesomguy.wsmlmb.test;
22

33
import net.anawesomguy.wsmlmb.block.CustomCraftingTableBlock;
4+
import net.anawesomguy.wsmlmb.block.MultiVersionBlockSettings;
45
import net.anawesomguy.wsmlmb.block.chest.TexturedChestBlock;
6+
import net.anawesomguy.wsmlmb.item.MultiVersionItemSettings;
57
import net.anawesomguy.wsmlmb.util.WSMLMBUtil;
68
import net.fabricmc.api.ModInitializer;
7-
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
89
import net.minecraft.block.Block;
910
import net.minecraft.item.BlockItem;
1011
import net.minecraft.item.Item;
@@ -13,36 +14,35 @@
1314
import net.minecraft.registry.Registry;
1415
import net.minecraft.util.Identifier;
1516

16-
@SuppressWarnings("deprecation")
1717
public final class WSMLMBTest implements ModInitializer {
1818
public static final String MOD_ID = "wsmlmb-test";
1919
public static final Block STONE_CHEST = Registry.register(
2020
Registries.BLOCK,
2121
new Identifier(MOD_ID, "stone_chest"),
22-
new TexturedChestBlock.Builder(FabricBlockSettings.of().strength(1.5F, 6).requiresTool())
22+
new TexturedChestBlock.Builder(MultiVersionBlockSettings.of("stone").strength(1.5F, 6).requiresTool())
2323
.setTextures(chestTexture("stone"), chestTexture("stone_left"), chestTexture("stone_right")) // sets the textures
2424
.build()
2525
);
2626
public static final Item STONE_CHEST_ITEM = Registry.register(
2727
Registries.ITEM,
2828
new Identifier(MOD_ID, "stone_chest"),
29-
new BlockItem(STONE_CHEST, new Item.Settings())
29+
new BlockItem(STONE_CHEST, new MultiVersionItemSettings())
3030
);
3131
public static final Block CUSTOM_CRAFTING_TABLE = Registry.register(
3232
Registries.BLOCK,
3333
new Identifier(MOD_ID, "custom_crafting_table"),
34-
new CustomCraftingTableBlock(FabricBlockSettings.of())
34+
new CustomCraftingTableBlock(MultiVersionBlockSettings.of("wood"))
3535
);
3636
public static final Item CUSTOM_CRAFTING_TABLE_ITEM = Registry.register(
3737
Registries.ITEM,
3838
new Identifier(MOD_ID, "custom_crafting_table"),
39-
new BlockItem(CUSTOM_CRAFTING_TABLE, new Item.Settings())
39+
new BlockItem(CUSTOM_CRAFTING_TABLE, new MultiVersionItemSettings())
4040
);
4141
// will be added to c:shears
4242
public static final Item TEST_SHEARS = Registry.register(
4343
Registries.ITEM,
4444
new Identifier(MOD_ID, "test_shears"),
45-
new ShearsItem(new Item.Settings())
45+
new ShearsItem(new MultiVersionItemSettings())
4646
);
4747

4848
@Override

0 commit comments

Comments
 (0)