mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 23:55:10 +00:00
Anvil Model + Push Attributes
This commit is contained in:
1 parent
4905b9400a
commit
5dd260bb42
19 files changed
+275
-98
No files matched your search
@@ -11,14 +11,14 @@ import noppes.npcs.blocks.tiles.TileTable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BlockTable extends BlockRotated{
|
||||
public class BlockTable extends BlockRotated {
|
||||
|
||||
public BlockTable() {
|
||||
super(Blocks.planks);
|
||||
this.setLightOpacity(-1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@Override
|
||||
public void getSubBlocks(Item par1, CreativeTabs par2CreativeTabs, List par3List){
|
||||
par3List.add(new ItemStack(par1, 1, 0));
|
||||
par3List.add(new ItemStack(par1, 1, 1));
|
||||
@@ -28,15 +28,15 @@ public class BlockTable extends BlockRotated{
|
||||
par3List.add(new ItemStack(par1, 1, 5));
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public int damageDropped(int par1){
|
||||
return par1;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack){
|
||||
super.onBlockPlacedBy(par1World, par2, par3, par4, par5EntityLivingBase, par6ItemStack);
|
||||
super.onBlockPlacedBy(par1World, par2, par3, par4, par5EntityLivingBase, par6ItemStack);
|
||||
par1World.setBlockMetadataWithNotify(par2, par3, par4, par6ItemStack.getItemDamage() , 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user