moved a bunch of stuff
This commit is contained in:
1 parent
72c276f976
commit
ecced620a4
30 files changed
+4450
-51
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package carpet.helpers;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
|
||||
public class PortalHelper
|
||||
{
|
||||
public static boolean player_holds_obsidian(EntityPlayer playerIn)
|
||||
{
|
||||
if ( (!playerIn.getHeldItemMainhand().isEmpty()
|
||||
&& playerIn.getHeldItemMainhand().getItem() instanceof ItemBlock &&
|
||||
((ItemBlock)(playerIn.getHeldItemMainhand().getItem())).getBlock() == Blocks.OBSIDIAN ))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user