From 4d353bab274eeb58fa5bef791ff03c182a734e9b Mon Sep 17 00:00:00 2001 From: Adrien1106 Date: Tue, 18 Jun 2024 15:23:59 +0200 Subject: [PATCH] refactor: changed method to non depreciated version --- src/main/java/fr/adrien1106/reframed/ReFramed.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/adrien1106/reframed/ReFramed.java b/src/main/java/fr/adrien1106/reframed/ReFramed.java index 768c4bd..cb1de54 100644 --- a/src/main/java/fr/adrien1106/reframed/ReFramed.java +++ b/src/main/java/fr/adrien1106/reframed/ReFramed.java @@ -7,7 +7,6 @@ import fr.adrien1106.reframed.item.ReFramedBlueprintWrittenItem; import fr.adrien1106.reframed.item.ReFramedScrewdriverItem; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup; -import net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.Blocks; @@ -99,7 +98,7 @@ public class ReFramed implements ModInitializer { REFRAMED_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, id("camo"), - FabricBlockEntityTypeBuilder.create( + BlockEntityType.Builder.create( (pos, state) -> new ReFramedEntity(REFRAMED_BLOCK_ENTITY, pos, state), BLOCKS.stream() .filter(block -> !(block instanceof ReFramedDoubleBlock)) @@ -107,7 +106,7 @@ public class ReFramed implements ModInitializer { ); REFRAMED_DOUBLE_BLOCK_ENTITY = Registry.register(Registries.BLOCK_ENTITY_TYPE, id("double_camo"), - FabricBlockEntityTypeBuilder.create( + BlockEntityType.Builder.create( (pos, state) -> new ReFramedDoubleEntity(REFRAMED_DOUBLE_BLOCK_ENTITY, pos, state), BLOCKS.stream() .filter(block -> block instanceof ReFramedDoubleBlock)