Fix item package

This commit is contained in:
Ben Spiers committed 2016-01-25 00:54:05 +00:00
1 parent 591fc1e4b4
commit 8af7ec270a
53 files changed
+309 -397

No files matched your search

+6
View File
@@ -144,6 +144,12 @@ public class Coord4D extends BlockPos
return world.getBlockState(this).getBlock();
}
public int getBlockMeta(IBlockAccess world)
{
IBlockState state = getBlockState(world);
return state == null ? 0 : state.getBlock().getMetaFromState(state);
}
/**
* Writes this Coord4D's data to an NBTTagCompound.
* @param nbtTags - tag compound to write to
@@ -1,6 +1,7 @@
package mekanism.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.EnumFacing;
/**
* Implement this in your TileEntity class if your block can be modified by a Configurator.
@@ -15,7 +16,7 @@ public interface IConfigurable
* @param side - the side the block was clicked on
* @return whether or not an action was performed
*/
public boolean onSneakRightClick(EntityPlayer player, int side);
public boolean onSneakRightClick(EntityPlayer player, EnumFacing side);
/**
* Called when a player right clicks this block with a Configurator.
@@ -23,5 +24,5 @@ public interface IConfigurable
* @param side - the side the block was clicked on
* @return whether or not an action was performed
*/
public boolean onRightClick(EntityPlayer player, int side);
public boolean onRightClick(EntityPlayer player, EnumFacing side);
}
+2 -1
View File
@@ -1,8 +1,9 @@
package mekanism.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
public interface IMekWrench
{
public boolean canUseWrench(EntityPlayer player, int x, int y, int z);
public boolean canUseWrench(EntityPlayer player, BlockPos pos);
}