moved rest of the stuff. mixins needed still

This commit is contained in:
gnembon committed 2019-05-12 17:50:00 -03:00
1 parent ecced620a4
commit f985678517
16 files changed
+417 -184

No files matched your search

@@ -0,0 +1,19 @@
package carpet.helpers;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.block.Blocks;
import net.minecraft.item.BlockItem;
public class PortalHelper
{
public static boolean player_holds_obsidian(PlayerEntity playerIn)
{
if ( (!playerIn.getMainHandStack().isEmpty()
&& playerIn.getMainHandStack().getItem() instanceof BlockItem &&
((BlockItem)(playerIn.getMainHandStack().getItem())).getBlock() == Blocks.OBSIDIAN ))
{
return true;
}
return false;
}
}