Java Code Examples for net.minecraft.init.Blocks.crafting_table()

The following are Jave code examples for showing how to use crafting_table() of the net.minecraft.init.Blocks class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: ContainerWorkbench.java   View Source Code Vote up 4 votes
public boolean canInteractWith(EntityPlayer playerIn)
{
    return this.worldObj.getBlockState(this.pos).getBlock() != Blocks.crafting_table ? false : playerIn.getDistanceSq((double)this.pos.getX() + 0.5D, (double)this.pos.getY() + 0.5D, (double)this.pos.getZ() + 0.5D) <= 64.0D;
}
 
Example 2
Project: DecompiledMinecraft   File: ContainerWorkbench.java   View Source Code Vote up 4 votes
public boolean canInteractWith(EntityPlayer playerIn)
{
    return this.worldObj.getBlockState(this.pos).getBlock() != Blocks.crafting_table ? false : playerIn.getDistanceSq((double)this.pos.getX() + 0.5D, (double)this.pos.getY() + 0.5D, (double)this.pos.getZ() + 0.5D) <= 64.0D;
}
 
Example 3
Project: BaseClient   File: ContainerWorkbench.java   View Source Code Vote up 4 votes
public boolean canInteractWith(EntityPlayer playerIn)
{
    return this.worldObj.getBlockState(this.pos).getBlock() != Blocks.crafting_table ? false : playerIn.getDistanceSq((double)this.pos.getX() + 0.5D, (double)this.pos.getY() + 0.5D, (double)this.pos.getZ() + 0.5D) <= 64.0D;
}
 
Example 4
Project: BaseClient   File: ContainerWorkbench.java   View Source Code Vote up 4 votes
public boolean canInteractWith(EntityPlayer playerIn)
{
    return this.worldObj.getBlockState(this.pos).getBlock() != Blocks.crafting_table ? false : playerIn.getDistanceSq((double)this.pos.getX() + 0.5D, (double)this.pos.getY() + 0.5D, (double)this.pos.getZ() + 0.5D) <= 64.0D;
}