forked from jaquadro/StorageDrawers
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from johnch18/downgrade
Backported Storage Downgrade
- Loading branch information
Showing
12 changed files
with
130 additions
and
25 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+260 Bytes
resources/assets/storagedrawers/textures/items/upgrade_downgrade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions
13
src/com/jaquadro/minecraft/storagedrawers/api/storage/attribute/IDowngradable.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,13 @@ | ||
package com.jaquadro.minecraft.storagedrawers.api.storage.attribute; | ||
|
||
public interface IDowngradable { | ||
|
||
boolean canDowngrade(); | ||
|
||
boolean isDowngraded(); | ||
|
||
boolean checkDowngraded(); | ||
|
||
void setDowngraded(boolean state); | ||
|
||
} |
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
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
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
30 changes: 30 additions & 0 deletions
30
src/com/jaquadro/minecraft/storagedrawers/item/ItemUpgradeDowngrade.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,30 @@ | ||
package com.jaquadro.minecraft.storagedrawers.item; | ||
|
||
import com.jaquadro.minecraft.storagedrawers.StorageDrawers; | ||
import com.jaquadro.minecraft.storagedrawers.core.ModCreativeTabs; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.StatCollector; | ||
|
||
import java.util.List; | ||
|
||
public class ItemUpgradeDowngrade extends Item { | ||
|
||
public ItemUpgradeDowngrade(String name) { | ||
setUnlocalizedName(name); | ||
setCreativeTab(ModCreativeTabs.tabStorageDrawers); | ||
setTextureName(StorageDrawers.MOD_ID + ":upgrade_downgrade"); | ||
setMaxDamage(0); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public void addInformation (ItemStack itemStack, EntityPlayer player, List list, boolean par4) { | ||
String name = getUnlocalizedName(itemStack); | ||
list.add(StatCollector.translateToLocalFormatted(name + ".description")); | ||
} | ||
|
||
} |
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
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 |
---|---|---|
|
@@ -7,4 +7,7 @@ public interface IUpgradeProvider | |
boolean isSorting (); | ||
|
||
boolean isShrouded (); | ||
|
||
boolean isDowngraded (); | ||
|
||
} |