Finished dungeon block localization of all current Dungeon Blocks. Finished implementing BlockStringStairs. Added the WAILA compat for the Stairs.
This commit is contained in:
parent
348664c3fe
commit
976fa1981d
12 changed files with 835 additions and 13 deletions
|
@ -0,0 +1,29 @@
|
|||
package WayofTime.bloodmagic.item.block;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import WayofTime.bloodmagic.block.BlockDemonStairsBase;
|
||||
|
||||
public class ItemDemonStairsBase extends ItemBlock
|
||||
{
|
||||
public final BlockDemonStairsBase demonBlock;
|
||||
|
||||
public ItemDemonStairsBase(BlockDemonStairsBase block)
|
||||
{
|
||||
super(block);
|
||||
setHasSubtypes(true);
|
||||
demonBlock = block;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack)
|
||||
{
|
||||
return super.getUnlocalizedName(stack) + demonBlock.names[stack.getItemDamage() % demonBlock.names.length];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int meta)
|
||||
{
|
||||
return meta % demonBlock.names.length;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue