Java 类net.minecraft.block.BlockEnchantmentTable 实例源码

项目:Skills    文件:EventHandler.java   
@SubscribeEvent
public void onBlockPlace(BlockEvent.PlaceEvent event)
{
    if(event.placedBlock.getBlock() instanceof BlockEnchantmentTable)
    {
        //event.setCanceled(true);

        //event.world.setBlockState(event.pos, new IBlockState())
    }
}
项目:shifted-snow    文件:ClassProviders.java   
public static void addEnchTable() {
  ShiftedSnowApi.addSimpleClassMapping(BlockEnchantmentTable.class, EnumSnowType.MINUS_QUARTER);
}