moved a bunch of stuff

This commit is contained in:
gnembon committed 2019-05-12 01:48:19 -03:00
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;
}
}