diff --git a/src/main/java/net/ugi/sculk_depths/SculkDepths.java b/src/main/java/net/ugi/sculk_depths/SculkDepths.java index 17bb1d79..953be11f 100644 --- a/src/main/java/net/ugi/sculk_depths/SculkDepths.java +++ b/src/main/java/net/ugi/sculk_depths/SculkDepths.java @@ -9,15 +9,15 @@ import org.slf4j.LoggerFactory; public class SculkDepths implements ModInitializer { - public static final String MOD_ID = "sculk_depths"; - public static final Logger LOGGER = LoggerFactory.getLogger("sculk_depths"); + public static final String MOD_ID = "sculk_depths"; + public static final Logger LOGGER = LoggerFactory.getLogger("sculk_depths"); - @Override - public void onInitialize() { - ModItemGroup.registerItemgroups(); - ModItems.registerModItems(); - ModBlocks.registerModBlocks(); - Portals.registerModPortals(); - LOGGER.info("sculk_depths has loaded"); - } + @Override + public void onInitialize() { + ModItemGroup.registerItemgroups(); + ModItems.registerModItems(); + ModBlocks.registerModBlocks(); + Portals.registerModPortals(); + LOGGER.info("sculk_depths has loaded"); + } } diff --git a/src/main/java/net/ugi/sculk_depths/SculkDepthsDataGenerator.java b/src/main/java/net/ugi/sculk_depths/SculkDepthsDataGenerator.java index 0baaa0d8..0c7a89f5 100644 --- a/src/main/java/net/ugi/sculk_depths/SculkDepthsDataGenerator.java +++ b/src/main/java/net/ugi/sculk_depths/SculkDepthsDataGenerator.java @@ -7,12 +7,12 @@ import net.ugi.sculk_depths.datagen.ModRecipeGenerator; public class SculkDepthsDataGenerator implements DataGeneratorEntrypoint { - @Override - public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { - FabricDataGenerator.Pack pack = fabricDataGenerator.createPack(); + @Override + public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { + FabricDataGenerator.Pack pack = fabricDataGenerator.createPack(); - pack.addProvider(ModLootTableGenerator::new); - pack.addProvider(ModRecipeGenerator::new); - pack.addProvider(ModModelProvider::new); - } + pack.addProvider(ModLootTableGenerator::new); + pack.addProvider(ModRecipeGenerator::new); + pack.addProvider(ModModelProvider::new); + } } diff --git a/src/main/java/net/ugi/sculk_depths/datagen/ModRecipeGenerator.java b/src/main/java/net/ugi/sculk_depths/datagen/ModRecipeGenerator.java index 82a7e932..cd38da87 100644 --- a/src/main/java/net/ugi/sculk_depths/datagen/ModRecipeGenerator.java +++ b/src/main/java/net/ugi/sculk_depths/datagen/ModRecipeGenerator.java @@ -22,8 +22,6 @@ public ModRecipeGenerator(FabricDataOutput output) { public void generate(Consumer exporter) { - - // JUST AN EXAMPLE } diff --git a/src/main/java/net/ugi/sculk_depths/fluid/KryslumFluid.java b/src/main/java/net/ugi/sculk_depths/fluid/KryslumFluid.java index de1deba0..1f2f188c 100644 --- a/src/main/java/net/ugi/sculk_depths/fluid/KryslumFluid.java +++ b/src/main/java/net/ugi/sculk_depths/fluid/KryslumFluid.java @@ -41,12 +41,12 @@ public Item getBucketItem() { } public void randomDisplayTick(World world, BlockPos pos, FluidState state, Random random) { - if (!state.isStill() && !(Boolean)state.get(FALLING)) { + if (!state.isStill() && !(Boolean) state.get(FALLING)) { if (random.nextInt(64) == 0) { - world.playSound((double)pos.getX() + 0.5D, (double)pos.getY() + 0.5D, (double)pos.getZ() + 0.5D, SoundEvents.BLOCK_SCULK_CATALYST_BLOOM, SoundCategory.BLOCKS, random.nextFloat() * 0.5F + 0.8F, random.nextFloat() + 0.5F, false); + world.playSound((double) pos.getX() + 0.5D, (double) pos.getY() + 0.5D, (double) pos.getZ() + 0.5D, SoundEvents.BLOCK_SCULK_CATALYST_BLOOM, SoundCategory.BLOCKS, random.nextFloat() * 0.5F + 0.8F, random.nextFloat() + 0.5F, false); } } else if (random.nextInt(10) == 0) { - world.addParticle(ParticleTypes.SCULK_SOUL, (double)pos.getX() + random.nextDouble(), (double)pos.getY() + random.nextDouble(), (double)pos.getZ() + random.nextDouble(), 0.0D, 0.0D, 0.0D); + world.addParticle(ParticleTypes.SCULK_SOUL, (double) pos.getX() + random.nextDouble(), (double) pos.getY() + random.nextDouble(), (double) pos.getZ() + random.nextDouble(), 0.0D, 0.0D, 0.0D); } } diff --git a/src/main/java/net/ugi/sculk_depths/fluid/ModFluids.java b/src/main/java/net/ugi/sculk_depths/fluid/ModFluids.java index 13d87c85..b0a56b80 100644 --- a/src/main/java/net/ugi/sculk_depths/fluid/ModFluids.java +++ b/src/main/java/net/ugi/sculk_depths/fluid/ModFluids.java @@ -10,7 +10,7 @@ public class ModFluids { public static final FlowableFluid KRYSLUM_STILL = register("kryslum_still", new KryslumFluid.Still()); public static final FlowableFluid KRYSLUM_FLOWING = register("kryslum_flow", new KryslumFluid.Flowing()); - private static FlowableFluid register(String name, FlowableFluid flowableFluid){ + private static FlowableFluid register(String name, FlowableFluid flowableFluid) { return Registry.register(Registries.FLUID, new Identifier(SculkDepths.MOD_ID, name), flowableFluid); } } diff --git a/src/main/java/net/ugi/sculk_depths/item/ModArmorMaterials.java b/src/main/java/net/ugi/sculk_depths/item/ModArmorMaterials.java index 198412db..87179a6c 100644 --- a/src/main/java/net/ugi/sculk_depths/item/ModArmorMaterials.java +++ b/src/main/java/net/ugi/sculk_depths/item/ModArmorMaterials.java @@ -61,7 +61,7 @@ public SoundEvent getEquipSound() { } public Ingredient getRepairIngredient() { - return (Ingredient)this.repairIngredientSupplier.get(); + return (Ingredient) this.repairIngredientSupplier.get(); } public String getName() { diff --git a/src/main/java/net/ugi/sculk_depths/item/ModItemGroup.java b/src/main/java/net/ugi/sculk_depths/item/ModItemGroup.java index 05e3f674..530dc068 100644 --- a/src/main/java/net/ugi/sculk_depths/item/ModItemGroup.java +++ b/src/main/java/net/ugi/sculk_depths/item/ModItemGroup.java @@ -10,7 +10,8 @@ public class ModItemGroup { public static ItemGroup SCULK_DEPTHS; - public static void registerItemgroups(){ + + public static void registerItemgroups() { SCULK_DEPTHS = FabricItemGroup.builder(new Identifier(SculkDepths.MOD_ID, "sculk_depths")) .displayName(Text.translatable("itemgroup.sculk_depths")) .icon(() -> new ItemStack(ModBlocks.UMBRUSK)).build(); diff --git a/src/main/java/net/ugi/sculk_depths/item/ModItems.java b/src/main/java/net/ugi/sculk_depths/item/ModItems.java index f6e560c9..b8e7612c 100644 --- a/src/main/java/net/ugi/sculk_depths/item/ModItems.java +++ b/src/main/java/net/ugi/sculk_depths/item/ModItems.java @@ -25,26 +25,25 @@ public class ModItems { //quazarith tools public static final Item QUAZARITH_SHOVEL = registerItem("quazarith_shovel", - new ShovelItem(ModToolMaterials.QUAZARITH, 2.5F,-3.0F, + new ShovelItem(ModToolMaterials.QUAZARITH, 2.5F, -3.0F, new FabricItemSettings())); public static final Item QUAZARITH_PICKAXE = registerItem("quazarith_pickaxe", new PickaxeItem(ModToolMaterials.QUAZARITH, 2, -2.0F, new FabricItemSettings())); public static final Item QUAZARITH_AXE = registerItem("quazarith_axe", - new AxeItem(ModToolMaterials.QUAZARITH, 7,-3.0F, + new AxeItem(ModToolMaterials.QUAZARITH, 7, -3.0F, new FabricItemSettings())); public static final Item QUAZARITH_HOE = registerItem("quazarith_hoe", - new HoeItem(ModToolMaterials.QUAZARITH, -4,1.0F, + new HoeItem(ModToolMaterials.QUAZARITH, -4, 1.0F, new FabricItemSettings())); public static final Item QUAZARITH_SWORD = registerItem("quazarith_sword", - new SwordItem(ModToolMaterials.QUAZARITH, 6,-2.0F, + new SwordItem(ModToolMaterials.QUAZARITH, 6, -2.0F, new FabricItemSettings())); - //quazarith armor public static final Item QUAZARITH_HELMET = registerItem("quazarith_helmet", new ArmorItem(ModArmorMaterials.QUAZARITH, ArmorItem.Type.HELMET, @@ -63,7 +62,7 @@ private static Item registerItem(String name, Item item) { return Registry.register(Registries.ITEM, new Identifier(SculkDepths.MOD_ID, name), item); } - public static void addItemsToItemGroup(){ + public static void addItemsToItemGroup() { addToItemGroup(ModItemGroup.SCULK_DEPTHS, KRYSLUM_BUCKET); addToItemGroup(ModItemGroup.SCULK_DEPTHS, SOUL_HEART); @@ -84,7 +83,7 @@ public static void addItemsToItemGroup(){ } private static void addToItemGroup(ItemGroup group, Item item) { - ItemGroupEvents.modifyEntriesEvent(group).register(entries -> entries.add((item))); + ItemGroupEvents.modifyEntriesEvent(group).register(entries -> entries.add((item))); } public static void registerModItems() { diff --git a/src/main/java/net/ugi/sculk_depths/item/ModToolMaterials.java b/src/main/java/net/ugi/sculk_depths/item/ModToolMaterials.java index be572d15..18374412 100644 --- a/src/main/java/net/ugi/sculk_depths/item/ModToolMaterials.java +++ b/src/main/java/net/ugi/sculk_depths/item/ModToolMaterials.java @@ -9,8 +9,7 @@ import java.util.function.Supplier; -public enum ModToolMaterials implements ToolMaterial -{ +public enum ModToolMaterials implements ToolMaterial { //GOLD(MiningLevels.WOOD, 32, 12.0f, 0.0f, 22, () -> Ingredient.ofItems(Items.GOLD_INGOT)), QUAZARITH(6, 3000, 38.29f, 4.0f, 30, () -> Ingredient.ofItems(ModItems.QUAZARITH_INGOT)); //change to quazarith ingot //deepslate instamine miningspeed: 38.29 diff --git a/src/main/java/net/ugi/sculk_depths/mixin/ExampleMixin.java b/src/main/java/net/ugi/sculk_depths/mixin/ExampleMixin.java index 41cd1501..ddfc5966 100644 --- a/src/main/java/net/ugi/sculk_depths/mixin/ExampleMixin.java +++ b/src/main/java/net/ugi/sculk_depths/mixin/ExampleMixin.java @@ -9,9 +9,9 @@ @Mixin(TitleScreen.class) public class ExampleMixin { - @Inject(at = @At("HEAD"), method = "init()V") - private void init(CallbackInfo info) { - SculkDepths.LOGGER.info("This line is printed by Sculk Depths mixin!"); - } + @Inject(at = @At("HEAD"), method = "init()V") + private void init(CallbackInfo info) { + SculkDepths.LOGGER.info("This line is printed by Sculk Depths mixin!"); + } } diff --git a/src/main/java/net/ugi/sculk_depths/portal/Portals.java b/src/main/java/net/ugi/sculk_depths/portal/Portals.java index 7b6cf15a..e894b296 100644 --- a/src/main/java/net/ugi/sculk_depths/portal/Portals.java +++ b/src/main/java/net/ugi/sculk_depths/portal/Portals.java @@ -16,7 +16,7 @@ public static void registerModPortals() { .destDimID(new Identifier("sculk_depths:sculk_depthsdim")) .tintColor(1, 69, 86) .lightWithItem(ModItems.SOUL_HEART) - .setPortalSearchYRange(0,120) + .setPortalSearchYRange(0, 120) .registerIgniteEvent((player, world, portalPos, framePos, portalIgnitionSource) -> { if (portalIgnitionSource.sourceType == PortalIgnitionSource.SourceType.USEITEM && player != null) { if (player.isCreative())