generated from Slimefun/Addon-Template
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12ee02c
commit 4a033fa
Showing
1 changed file
with
37 additions
and
36 deletions.
There are no files selected for viewing
73 changes: 37 additions & 36 deletions
73
src/main/java/me/profelements/dynatech/items/electric/transfer/WirelessEnergyBank.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |