mirror of
https://github.com/GTNewHorizons/BloodArsenal.git
synced 2026-11-28 07:55:36 +00:00
Localized tooltips
And other stuffs...
This commit is contained in:
1 parent
727190b6c8
commit
69391a031b
38 files changed
+1822
-128
No files matched your search
@@ -0,0 +1,70 @@
|
||||
package com.arc.bloodarsenal.block;
|
||||
|
||||
import WayofTime.alchemicalWizardry.*;
|
||||
import WayofTime.alchemicalWizardry.ModBlocks;
|
||||
import WayofTime.alchemicalWizardry.api.event.RitualActivatedEvent;
|
||||
import WayofTime.alchemicalWizardry.api.event.RitualRunEvent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone;
|
||||
import com.arc.bloodarsenal.BloodArsenal;
|
||||
import com.arc.bloodarsenal.tileentity.TileCompacter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.ChatComponentText;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BlockCompacter extends BlockContainer
|
||||
{
|
||||
public BlockCompacter()
|
||||
{
|
||||
super(Material.iron);
|
||||
setBlockName("compacter");
|
||||
setCreativeTab(BloodArsenal.BA_TAB);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what, float these, float are)
|
||||
{
|
||||
TileEntity tile = world.getTileEntity(x, y + 1, z);
|
||||
|
||||
if (tile instanceof TEMasterStone)
|
||||
{
|
||||
TEMasterStone ritualStone = new TEMasterStone();
|
||||
|
||||
if (!ritualStone.getCurrentRitual().isEmpty())
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("It worked"));
|
||||
String ritualName = ritualStone.getCurrentRitual();
|
||||
|
||||
if (ritualStone.getCurrentRitual().equals(ritualName))
|
||||
{
|
||||
|
||||
//ritualStone.
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("It failed"));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World world, int meta)
|
||||
{
|
||||
return new TileCompacter();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user