mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fix item package
This commit is contained in:
1 parent
591fc1e4b4
commit
8af7ec270a
53 files changed
+309
-397
No files matched your search
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user