Skip to content

Commit

Permalink
🎨 fix(WirelessEnergyBank): Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfElements committed Sep 24, 2024
1 parent 12ee02c commit 4a033fa
Showing 1 changed file with 37 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
package me.profelements.dynatech.items.electric.transfer;

import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
import io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent;
import io.github.thebusybiscuit.slimefun4.core.networks.energy.EnergyNetComponentType;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;

public class WirelessEnergyBank extends SlimefunItem implements EnergyNetComponent {

private final int capacity;

@ParametersAreNonnullByDefault
public WirelessEnergyBank(ItemGroup itemGroup, int capacity, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
super(itemGroup, item, recipeType, recipe);

this.capacity = capacity;
}

@Override
@Nonnull
public EnergyNetComponentType getEnergyComponentType() {
return EnergyNetComponentType.CAPACITOR;
}

@Override
public int getCapacity() {
return capacity;
}

}
package me.profelements.dynatech.items.electric.transfer;

import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
import io.github.thebusybiscuit.slimefun4.core.attributes.EnergyNetComponent;
import io.github.thebusybiscuit.slimefun4.core.networks.energy.EnergyNetComponentType;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;

public class WirelessEnergyBank extends SlimefunItem implements EnergyNetComponent {

private final int capacity;

@ParametersAreNonnullByDefault
public WirelessEnergyBank(ItemGroup itemGroup, int capacity, SlimefunItemStack item, RecipeType recipeType,
ItemStack[] recipe) {
super(itemGroup, item, recipeType, recipe);

this.capacity = capacity;
}

@Override
@Nonnull
public EnergyNetComponentType getEnergyComponentType() {
return EnergyNetComponentType.CAPACITOR;
}

@Override
public int getCapacity() {
return capacity;
}

}

0 comments on commit 4a033fa

Please sign in to comment.