-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows Addon Makers to register new increment Upgrades
- Loading branch information
Showing
3 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...on/src/main/java/whocraft/tardis_refined/common/capability/upgrades/IncrementUpgrade.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package whocraft.tardis_refined.common.capability.upgrades; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.ItemStack; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class IncrementUpgrade extends Upgrade{ | ||
|
||
int incrementAmount = 0; | ||
|
||
public IncrementUpgrade(Supplier<ItemStack> icon, ResourceLocation translationKey, UpgradeType upgradeType) { | ||
super(icon, translationKey, upgradeType); | ||
} | ||
|
||
public IncrementUpgrade(Supplier<ItemStack> icon, Supplier<Upgrade> parent, ResourceLocation translationKey, UpgradeType upgradeType) { | ||
super(icon, parent, translationKey, upgradeType); | ||
} | ||
|
||
public int getIncrementAmount() { | ||
return incrementAmount; | ||
} | ||
|
||
public IncrementUpgrade setIncrementAmount(int incrementAmount) { | ||
this.incrementAmount = incrementAmount; | ||
return this; | ||
} | ||
} |
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
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