Skip to content

Commit

Permalink
Delete unnecessary imports and add spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Oct 5, 2023
1 parent f745e4e commit 307ca6d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
9 changes: 5 additions & 4 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ val fabricLoaderVersion: String by extra
val botariumVersion: String by extra
val resourcefullibVersion: String by extra
val jeiVersion: String by extra
val reiVersion: String by extra

dependencies {
modImplementation("net.fabricmc:fabric-loader:$fabricLoaderVersion")

modCompileOnly("mezz.jei:jei-$minecraftVersion-common-api:${jeiVersion}")
modRuntimeOnly("mezz.jei:jei-$minecraftVersion-common:${jeiVersion}")
//modCompileOnly "me.shedaniel:RoughlyEnoughItems-api:${rei_version}"
//modCompileOnly "me.shedaniel:RoughlyEnoughItems-default-plugin:${rei_version}"
modCompileOnly("mezz.jei:jei-$minecraftVersion-common-api:$jeiVersion")
modRuntimeOnly("mezz.jei:jei-$minecraftVersion-common:$jeiVersion")
//modCompileOnly("me.shedaniel:RoughlyEnoughItems-api:$reiVersion")
//modCompileOnly("me.shedaniel:RoughlyEnoughItems-default-plugin:$reiVersion")
}

architectury {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockState;
import net.tonimatasdev.krystalcraft.plorix.menu.ExtraDataMenuProvider;
import net.tonimatasdev.krystalcraft.plorix.inventory.ModInventory;
import net.tonimatasdev.krystalcraft.plorix.menu.ExtraDataMenuProvider;

@MethodsReturnNonnullByDefault
public abstract class AbstractBlockEntity extends BlockEntity implements ExtraDataMenuProvider, ModInventory, WorldlyContainer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package net.tonimatasdev.krystalcraft.plorix.fluid.base;

import net.tonimatasdev.krystalcraft.plorix.fluid.impl.SimpleFluidSnapshot;

public interface FluidSnapshot {
void loadSnapshot(FluidContainer container);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ public void deserializeData(CompoundTag compoundTag, CallbackInfo ci) {
if (this instanceof PlorixEnergyBlock<?> energyBlock) {
energyBlock.getEnergyStorage().deserialize(compoundTag);
}

if (this instanceof PlorixFluidBlock<?> fluidHoldingBlock) {
fluidHoldingBlock.getFluidContainer().deserialize(compoundTag);
}

if (this instanceof ItemContainerBlock itemContainerBlock) {
itemContainerBlock.getContainer().deserialize(compoundTag);
}
Expand All @@ -30,9 +32,11 @@ public void serializeData(CompoundTag compoundTag, CallbackInfo ci) {
if (this instanceof PlorixEnergyBlock<?> energyBlock) {
energyBlock.getEnergyStorage().serialize(compoundTag);
}

if (this instanceof PlorixFluidBlock<?> fluidHoldingBlock) {
fluidHoldingBlock.getFluidContainer().serialize(compoundTag);
}

if (this instanceof ItemContainerBlock itemContainerBlock) {
itemContainerBlock.getContainer().serialize(compoundTag);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.*;
import net.minecraft.world.level.Level;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import net.tonimatasdev.krystalcraft.registry.ModRecipeSerializers;
import net.tonimatasdev.krystalcraft.registry.ModRecipes;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import org.jetbrains.annotations.NotNull;

public class CombiningRecipe implements Recipe<Container> {
Expand Down Expand Up @@ -79,7 +79,6 @@ public boolean isSpecial() {
return true;
}

@SuppressWarnings("unused")
public static class Serializer implements RecipeSerializer<CombiningRecipe> {
@Override
public @NotNull CombiningRecipe fromJson(ResourceLocation id, JsonObject json) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.*;
import net.minecraft.world.level.Level;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import net.tonimatasdev.krystalcraft.registry.ModRecipeSerializers;
import net.tonimatasdev.krystalcraft.registry.ModRecipes;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import org.jetbrains.annotations.NotNull;

public class CrushingRecipe implements Recipe<Container> {
Expand Down Expand Up @@ -77,7 +77,6 @@ public boolean isSpecial() {
return true;
}

@SuppressWarnings("unused")
public static class Serializer implements RecipeSerializer<CrushingRecipe> {
@Override
public @NotNull CrushingRecipe fromJson(ResourceLocation id, JsonObject json) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.*;
import net.minecraft.world.level.Level;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import net.tonimatasdev.krystalcraft.registry.ModRecipeSerializers;
import net.tonimatasdev.krystalcraft.registry.ModRecipes;
import net.tonimatasdev.krystalcraft.plorix.util.RecipesUtil;
import org.jetbrains.annotations.NotNull;

public class CuttingRecipe implements Recipe<Container> {
Expand Down Expand Up @@ -77,7 +77,6 @@ public boolean isSpecial() {
return true;
}

@SuppressWarnings("unused")
public static class Serializer implements RecipeSerializer<CuttingRecipe> {
@Override
public @NotNull CuttingRecipe fromJson(ResourceLocation id, JsonObject json) {
Expand Down

0 comments on commit 307ca6d

Please sign in to comment.