More stuff ingame and showing up.
This commit is contained in:
@@ -24,9 +24,10 @@ import javax.annotation.Nullable;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.ActionResultType;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.BlockRayTraceResult;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import appeng.block.AEBaseTileBlock;
|
||||
@@ -41,7 +42,7 @@ public class BlockCubeGenerator extends AEBaseTileBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActivated( final World w, final BlockPos pos, final PlayerEntity player, final Hand hand, final @Nullable ItemStack heldItem, final Direction side, final float hitX, final float hitY, final float hitZ )
|
||||
public ActionResultType onActivated(final World w, final BlockPos pos, final PlayerEntity player, final Hand hand, final @Nullable ItemStack heldItem, final BlockRayTraceResult hit)
|
||||
{
|
||||
final TileCubeGenerator tcg = this.getTileEntity( w, pos );
|
||||
if( tcg != null )
|
||||
|
||||
@@ -24,9 +24,10 @@ import javax.annotation.Nullable;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.ActionResultType;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.BlockRayTraceResult;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import appeng.block.AEBaseTileBlock;
|
||||
@@ -41,7 +42,7 @@ public class BlockPhantomNode extends AEBaseTileBlock
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActivated( final World w, final BlockPos pos, final PlayerEntity player, final Hand hand, final @Nullable ItemStack heldItem, final Direction side, final float hitX, final float hitY, final float hitZ )
|
||||
public ActionResultType onActivated(final World w, final BlockPos pos, final PlayerEntity player, final Hand hand, final @Nullable ItemStack heldItem, final BlockRayTraceResult hit)
|
||||
{
|
||||
final TilePhantomNode tpn = this.getTileEntity( w, pos );
|
||||
tpn.triggerCrashMode();
|
||||
|
||||
@@ -65,7 +65,7 @@ public class TileCubeGenerator extends AEBaseTile implements ITickable
|
||||
|
||||
private void spawn()
|
||||
{
|
||||
this.world.setBlockToAir( this.pos );
|
||||
this.world.removeBlock(this.pos, false);
|
||||
|
||||
final Item i = this.is.getItem();
|
||||
final Direction side = Direction.UP;
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ToolEraser extends AEBaseItem
|
||||
if( state == c_state )
|
||||
{
|
||||
blocks++;
|
||||
world.setBlockToAir( wc );
|
||||
world.removeBlock(wc, false);
|
||||
|
||||
next.add( wc.add( 1, 0, 0 ) );
|
||||
next.add( wc.add( -1, 0, 0 ) );
|
||||
|
||||
@@ -76,7 +76,7 @@ public class ToolReplicatorCard extends AEBaseItem
|
||||
}
|
||||
else
|
||||
{
|
||||
final CompoundNBT ish = player.getHeldItem( hand ).getTagCompound();
|
||||
final CompoundNBT ish = player.getHeldItem( hand ).getTag();
|
||||
if( ish != null )
|
||||
{
|
||||
final int src_x = ish.getInteger( "x" );
|
||||
|
||||
Reference in New Issue
Block a user