From 6852af1e5fc40e5fa5aa2851ea3644392000622c Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 9 Apr 2024 13:23:19 -0700 Subject: [PATCH] Push current work --- .../dev/zontreck/essentials/blocks/ModBlocks.java | 2 -- .../essentials/homes/HomesSuggestionProvider.java | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/src/main/java/dev/zontreck/essentials/blocks/ModBlocks.java b/src/main/java/dev/zontreck/essentials/blocks/ModBlocks.java index 89a7c6d..b2151f3 100644 --- a/src/main/java/dev/zontreck/essentials/blocks/ModBlocks.java +++ b/src/main/java/dev/zontreck/essentials/blocks/ModBlocks.java @@ -160,8 +160,6 @@ public class ModBlocks { public static final RegistryObject CLINKER_BRICK_STAINED_STAIRS = registerWithItem(BLOCKS.register("clinker_brick_stained_stairs", ()-> new StairBlock(CLINKER_BRICK_STAINED_BLOCK.get()::defaultBlockState, BlockBehaviour.Properties.copy(Blocks.STONE))), new Item.Properties()); - public static final RegistryObject CLINKER_BRICK_SASTOR_CORNER_BLOCK = registerWithItem(BLOCKS.register("clinker_brick_sastor_corner_block", ()-> new RotatableBlock(BlockBehaviour.Properties.copy(Blocks.STONE))), new Item.Properties()); - /*public static final RegistryObject CLINKER_BRICK_VERTICAL_SLAB_STRUCTURED = registerWithItem(BLOCKS.register("clinker_brick_vertical_slab_structured", () -> new StandardBlocks.HorizontalWaterLoggable( StandardBlocks.CFG_CUTOUT | StandardBlocks.CFG_HORIZIONTAL | StandardBlocks.CFG_LOOK_PLACEMENT, BlockBehaviour.Properties.of().strength(0.5f, 7f).sound(SoundType.STONE), diff --git a/src/main/java/dev/zontreck/essentials/homes/HomesSuggestionProvider.java b/src/main/java/dev/zontreck/essentials/homes/HomesSuggestionProvider.java index 63629d9..ac823d6 100644 --- a/src/main/java/dev/zontreck/essentials/homes/HomesSuggestionProvider.java +++ b/src/main/java/dev/zontreck/essentials/homes/HomesSuggestionProvider.java @@ -15,17 +15,4 @@ import java.util.List; import java.util.concurrent.CompletableFuture; public class HomesSuggestionProvider { - public static SuggestionProvider PROVIDER = (ctx,suggestionsBuilder)->{ - Homes homes = HomesProvider.getHomesForPlayer(ctx.getSource().getPlayer().getUUID().toString()); - - List homesList = new ArrayList<>(); - - for(Home home : homes.getList()) - { - homesList.add(home.homeName); - } - - - return SharedSuggestionProvider.suggest((String[]) homesList.toArray(), suggestionsBuilder); - }; }